scons: add /dynamicbase and /nxcompat to MSVC linkflags
authorBrian Paul <brianp@vmware.com>
Wed, 12 Feb 2014 16:05:13 +0000 (09:05 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 11 Sep 2014 10:59:28 +0000 (11:59 +0100)
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>
scons/gallium.py

index e9153197110c318d1adaaa3e77ec048fb15ae779..b6c05ecd8001ba40dd19f03d312733018e77040c 100755 (executable)
@@ -547,6 +547,8 @@ def generate(env):
         linkflags += [
             '/fixed:no',
             '/incremental:no',
+            '/dynamicbase',
+            '/nxcompat',
         ]
     env.Append(LINKFLAGS = linkflags)
     env.Append(SHLINKFLAGS = shlinkflags)