From: Pierre Joye Date: Fri, 7 Jan 2011 20:50:33 +0000 (+0000) Subject: - enable ASLR and NXCOMPAT by default X-Git-Tag: php-5.4.0alpha1~191^2~402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3a4bfee8fea1bb6eca693fc66d7cce4fec51b58;p=php - enable ASLR and NXCOMPAT by default --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 2525df747a..4c9103b9d5 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -406,3 +406,8 @@ if (PHP_DSP != "no") { } FSO.CreateFolder("tmp"); } + +ARG_ENABLE("security-flags", "Enable the compiler security flags", "yes"); +if (PHP_SECURITY_FLAGS == "yes") { + ADD_FLAG("LDFLAGS", "/NXCOMPAT /DYNAMICBASE "); +}