Moving stack-smashing protection to the Blackberry mkspecs
It transpires that QNX 6.5.0 does not yet have libc support for the gcc stack smashing protection. Change-Id: Ic635662b6aa3ce2fad5f69e236386ae9ace420db Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
bdfff4d825
commit
1c20c3f294
@ -7,10 +7,9 @@
|
||||
#
|
||||
# 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 -fstack-protector -fstack-protector-all
|
||||
QMAKE_CFLAGS += -Wno-psabi
|
||||
QMAKE_CFLAGS_DEPS += -M
|
||||
QMAKE_CFLAGS_WARN_ON += -Wall -W
|
||||
QMAKE_CFLAGS_WARN_OFF += -w
|
||||
|
@ -6,4 +6,7 @@ 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-armv7le-qcc/qmake.conf)
|
||||
|
@ -6,4 +6,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user