From cb868b2baa4c20e61e713aa410a786039c6a29a7 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sat, 30 Aug 2014 01:50:36 +0200 Subject: [PATCH] Enable dynamicbase and nxcompat in Windows binaries --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 8661376ac..337ba99d8 100644 --- a/configure.ac +++ b/configure.ac @@ -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