activate ASLR for linux
authorKonrad Rosenbaum <konrad@silmor.de>
Sat, 14 Apr 2012 12:34:25 +0000 (14:34 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Sat, 14 Apr 2012 12:34:25 +0000 (14:34 +0200)
src/smoke.pro

index 631d1c1..af7e047 100644 (file)
@@ -54,3 +54,11 @@ include(wob/wob.pri)
 
 #make sure dependencies are found
 DEPENDPATH += $$INCLUDEPATH
+
+#security features
+linux-g++* {
+  message("activating ASLR and friends")
+  QMAKE_CFLAGS += -fPIE
+  QMAKE_CXXFLAGS += -fPIE
+  QMAKE_LFLAGS += -pie
+}