diff options
author | Pierre Joye <pajoye@php.net> | 2011-01-07 20:50:33 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-01-07 20:50:33 +0000 |
commit | f3a4bfee8fea1bb6eca693fc66d7cce4fec51b58 (patch) | |
tree | 05d3359f271d33c3bca64364c552c569dac00071 /win32 | |
parent | 69a3575b380750380edb764c86e96af9e7ed849c (diff) | |
download | php-git-f3a4bfee8fea1bb6eca693fc66d7cce4fec51b58.tar.gz |
- enable ASLR and NXCOMPAT by default
Diffstat (limited to 'win32')
-rw-r--r-- | win32/build/config.w32 | 5 |
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 "); +} |