]> granicus.if.org Git - php/commitdiff
- enable ASLR and NXCOMPAT by default
authorPierre Joye <pajoye@php.net>
Fri, 7 Jan 2011 20:50:33 +0000 (20:50 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 7 Jan 2011 20:50:33 +0000 (20:50 +0000)
win32/build/config.w32

index 2525df747a3e3dfa23345c407b2923a13a55476b..4c9103b9d51658a24272efc28c552bd0ffa6243e 100644 (file)
@@ -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 ");
+}