diff options
author | Peter Hartmann <phartmann@rim.com> | 2012-09-20 12:11:25 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-14 08:56:08 (GMT) |
commit | e25f67d3e6ba6aa24a355010e0dc3baadbbacb8b (patch) | |
tree | 230af0f7d8e04348a97ce274615a45e5b3ff2d41 /mkspecs/blackberry-x86-qcc | |
parent | 3fbc68b372741d04f477915bb09efbd2a277a570 (diff) | |
download | Qt-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/blackberry-x86-qcc')
-rw-r--r-- | mkspecs/blackberry-x86-qcc/qmake.conf | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mkspecs/blackberry-x86-qcc/qmake.conf b/mkspecs/blackberry-x86-qcc/qmake.conf index 60b67f8..45d6c4b 100644 --- a/mkspecs/blackberry-x86-qcc/qmake.conf +++ b/mkspecs/blackberry-x86-qcc/qmake.conf @@ -2,11 +2,17 @@ # qmake configuration for blackberry x86 systems # +include(../qnx-x86-qcc/qmake.conf) + +load(qt_config) + DEFINES += Q_OS_BLACKBERRY CONFIG += blackberry LIBS += -lbps # Blackberry also has support for stack smashing protection in its libc -QMAKE_CFLAGS += -fstack-protector -fstack-protector-all - -include(../qnx-x86-qcc/qmake.conf) +contains(QT_CONFIG, stack-protector-strong) { + QMAKE_CFLAGS += -fstack-protector-strong +} else { + QMAKE_CFLAGS += -fstack-protector -fstack-protector-all +} |