summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2014-12-03 12:24:14 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2014-12-03 12:33:17 +0100
commit179553ff3ee4e3ce0904b468f1377451752505f6 (patch)
tree0252c38519b5dd49874957bf9c266d639d74b1b0
parenta6cbdd0e3aaa295436610283092ab691875a3897 (diff)
Do not use gold linker with stabs debug format
The gold linker and stabs format interact badly, negating not only the memory pressure savings intended with stabs but producing much larger debug binaries. Change-Id: Ic2af8dbcc274ae84e4d5fbe474138e4dc5f96f56 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rw-r--r--Tools/qmake/mkspecs/features/unix/default_post.prf2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/qmake/mkspecs/features/unix/default_post.prf b/Tools/qmake/mkspecs/features/unix/default_post.prf
index 9c524065d..fd66af670 100644
--- a/Tools/qmake/mkspecs/features/unix/default_post.prf
+++ b/Tools/qmake/mkspecs/features/unix/default_post.prf
@@ -31,6 +31,8 @@ linux-g++*:isEqual(QT_ARCH,i386) {
QMAKE_CXXFLAGS_DEBUG += -gstabs
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -g
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -gstabs
+ # Don't use the gold linker with stabs, it uses more memory and produces larger debug binaries.
+ CONFIG -= use_gold_linker
}
}