summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mkspecs/blackberry-armv7le-qcc/qmake.conf2
-rw-r--r--mkspecs/blackberry-x86-qcc/qmake.conf2
2 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/blackberry-armv7le-qcc/qmake.conf b/mkspecs/blackberry-armv7le-qcc/qmake.conf
index 98daef1..44ea967 100644
--- a/mkspecs/blackberry-armv7le-qcc/qmake.conf
+++ b/mkspecs/blackberry-armv7le-qcc/qmake.conf
@@ -21,3 +21,5 @@ contains(QT_CONFIG, stack-protector-strong) {
QMAKE_CFLAGS += -mcpu=cortex-a9
QMAKE_CXXFLAGS += -mcpu=cortex-a9
+
+QMAKE_LFLAGS_SHLIB += -Wl,-z,relro -Wl,-z,now
diff --git a/mkspecs/blackberry-x86-qcc/qmake.conf b/mkspecs/blackberry-x86-qcc/qmake.conf
index 26bf509..fe33893 100644
--- a/mkspecs/blackberry-x86-qcc/qmake.conf
+++ b/mkspecs/blackberry-x86-qcc/qmake.conf
@@ -18,3 +18,5 @@ contains(QT_CONFIG, stack-protector-strong) {
QMAKE_CFLAGS += -fstack-protector -fstack-protector-all
QMAKE_CXXFLAGS += -fstack-protector -fstack-protector-all
}
+
+QMAKE_LFLAGS_SHLIB += -Wl,-z,relro -Wl,-z,now