Enable dynamicbase and nxcompat in Windows binaries

pull/271/head
Nils Maier 2014-08-30 01:50:36 +02:00
parent 0f805fb962
commit cb868b2baa
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ case "$host" in
# C++ headers defines __USE_MINGW_ANSI_STDIO to 1 unconditionally.
# We have to use it as well nonetheless.
CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $CPPFLAGS"
# Build with ASLR (dynamicbase) and NX compatiblity (nxcompat)
# Enable pie once upstream/binutils gets fixed to produce correct binaries with it.
LDFLAGS="$LDFLAGS -Wl,--dynamicbase -Wl,--nxcompat"
;;
esac