1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(build): enable ASLR and DEP protection for windows builds

Fixes #3452.
This commit is contained in:
Zetok Zalbavar 2016-12-17 20:09:20 +00:00
parent fcd8eed7cd
commit 5928413b28
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -119,6 +119,9 @@ contains(DEFINES, QTOX_PLATFORM_EXT) {
# Rules for Windows, Mac OSX, and Linux # Rules for Windows, Mac OSX, and Linux
win32 { win32 {
# windows-specific hardening (ASLR, DEP protection)
QMAKE_LFLAGS += -Wl,dynamicbase -Wl,nxcompat
RC_FILE = windows/qtox.rc RC_FILE = windows/qtox.rc
LIBS += -L$$PWD/libs/lib \ LIBS += -L$$PWD/libs/lib \
-ltoxav \ -ltoxav \