summaryrefslogtreecommitdiffstats
path: root/mkspecs/blackberry-x86-qcc/qmake.conf
blob: fe3389375f5bb5c0eac4ba95c8ee98ca9b2b373f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# 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
contains(QT_CONFIG, stack-protector-strong) {
    QMAKE_CFLAGS += -fstack-protector-strong
    QMAKE_CXXFLAGS += -fstack-protector-strong
} else {
    QMAKE_CFLAGS += -fstack-protector -fstack-protector-all
    QMAKE_CXXFLAGS += -fstack-protector -fstack-protector-all
}

QMAKE_LFLAGS_SHLIB += -Wl,-z,relro -Wl,-z,now