summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-01-07 20:50:33 +0000
committerPierre Joye <pajoye@php.net>2011-01-07 20:50:33 +0000
commitf3a4bfee8fea1bb6eca693fc66d7cce4fec51b58 (patch)
tree05d3359f271d33c3bca64364c552c569dac00071 /win32
parent69a3575b380750380edb764c86e96af9e7ed849c (diff)
downloadphp-git-f3a4bfee8fea1bb6eca693fc66d7cce4fec51b58.tar.gz
- enable ASLR and NXCOMPAT by default
Diffstat (limited to 'win32')
-rw-r--r--win32/build/config.w325
1 files changed, 5 insertions, 0 deletions
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 ");
+}