scons: add /dynamicbase and /nxcompat to MSVC linkflags
This builds the opengl DLLs with address layout space randomization
(ASLR) and data execution prevention (DEP) for better security.
Reviewed-by: Kurt Daverman <krd@vmware.com>
diff --git a/scons/gallium.py b/scons/gallium.py
index e915319..b6c05ec 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -547,6 +547,8 @@
linkflags += [
'/fixed:no',
'/incremental:no',
+ '/dynamicbase',
+ '/nxcompat',
]
env.Append(LINKFLAGS = linkflags)
env.Append(SHLINKFLAGS = shlinkflags)