summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/qcc-base.conf
diff options
context:
space:
mode:
authorPeter Hartmann <phartmann@rim.com>2012-09-20 12:11:25 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-14 08:56:08 (GMT)
commite25f67d3e6ba6aa24a355010e0dc3baadbbacb8b (patch)
tree230af0f7d8e04348a97ce274615a45e5b3ff2d41 /mkspecs/common/qcc-base.conf
parent3fbc68b372741d04f477915bb09efbd2a277a570 (diff)
downloadQt-e25f67d3e6ba6aa24a355010e0dc3baadbbacb8b.zip
Qt-e25f67d3e6ba6aa24a355010e0dc3baadbbacb8b.tar.gz
Qt-e25f67d3e6ba6aa24a355010e0dc3baadbbacb8b.tar.bz2
Blackberry mkspecs: Refine compiler options
stack-protector-strong gives performance benefits over stack-protector-all and is still checking more than -stack-protector, so seems to be a good middle way and we want to use it when it is there. The -shared option for the compiler (not the linker) prevents a RIM internal version of qcc from forcing -fPIE, and should not harm in general when set. In addition, add a method "compilerSupportsFlag" for Windows as is present in the Unix configure script. Original-patch-by: Greg Bentz (cherry picked from commit 80f6d7862c0e2e41768620d5bd81b0e1d5e3f61f) Change-Id: I5867fc03dde1ef6e2fbf3747bdb9aaf15518eb6a Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'mkspecs/common/qcc-base.conf')
-rw-r--r--mkspecs/common/qcc-base.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/common/qcc-base.conf b/mkspecs/common/qcc-base.conf
index 6f8d336..3ceaa8e 100644
--- a/mkspecs/common/qcc-base.conf
+++ b/mkspecs/common/qcc-base.conf
@@ -14,7 +14,7 @@ QMAKE_CFLAGS_WARN_ON += -Wall -W
QMAKE_CFLAGS_WARN_OFF += -w
QMAKE_CFLAGS_RELEASE += -O2
QMAKE_CFLAGS_DEBUG += -g
-QMAKE_CFLAGS_SHLIB += -fPIC
+QMAKE_CFLAGS_SHLIB += -fPIC -shared
QMAKE_CFLAGS_STATIC_LIB += -fPIC
QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden