Enable DEP+ASLR for cmake modules (autotype dll).

This commit is contained in:
rockihack 2017-03-10 13:09:52 +01:00 committed by Janek Bevendorff
parent 1984595d0d
commit 914b848e58
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -129,6 +129,7 @@ if(MINGW)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
# Enable DEP and ASLR
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
link_libraries(ws2_32 wsock32)
endif()