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>
This commit is contained in:
Brian Paul
2014-02-12 09:05:13 -07:00
committed by José Fonseca
parent 6816d853db
commit 4860e98972

View File

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