Added security hardening flags for ASLR and DEP protection for Windows compile.

This commit is contained in:
thunder2 2016-01-28 16:20:11 +01:00
parent 85cdfcc721
commit 8dde723e90
3 changed files with 24 additions and 0 deletions

View file

@ -157,6 +157,14 @@ win32 {
QMAKE_CFLAGS += -Wextra
QMAKE_CXXFLAGS += -Wextra
CONFIG(debug, debug|release) {
} else {
# Tell linker to use ASLR protection
QMAKE_LFLAGS += -Wl,-dynamicbase
# Tell linker to use DEP protection
QMAKE_LFLAGS += -Wl,-nxcompat
}
# solve linker warnings because of the order of the libraries
QMAKE_LFLAGS += -Wl,--start-group