summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/qcc-base.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/common/qcc-base.conf')
-rw-r--r--mkspecs/common/qcc-base.conf9
1 files changed, 6 insertions, 3 deletions
diff --git a/mkspecs/common/qcc-base.conf b/mkspecs/common/qcc-base.conf
index a9e86efb75..a2aefc6cd3 100644
--- a/mkspecs/common/qcc-base.conf
+++ b/mkspecs/common/qcc-base.conf
@@ -3,11 +3,14 @@
#
# - The QNX qcc compiler
#
-# The only difference between this and gcc-base.conf is that -pipe is removed
-# as it's on by default in qcc (and has an analogous -nopipe option)
+# The differences between this and gcc-base.conf are that
+#
+# 1) -pipe is removed as it's on by default in qcc (and has an analogous -nopipe option)
+# 2) -Wno-psabi is added to silence harmless warnings about va_list mangling
+# 3) -fstack-protector -fstack-protector-all is added to enable stack smashing protection
#
-QMAKE_CFLAGS += -Wno-psabi
+QMAKE_CFLAGS += -Wno-psabi -fstack-protector -fstack-protector-all
QMAKE_CFLAGS_DEPS += -M
QMAKE_CFLAGS_WARN_ON += -Wall -W
QMAKE_CFLAGS_WARN_OFF += -w