From 771ab951a8d3d16f577f0438a8d03544ff32b21f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 11 Sep 2014 11:43:04 +0100 Subject: [PATCH] scons: add /dynamicbase and /nxcompat to MinGW linkflags Just like b26503b196d51dc46c815e241343e42ab30e8d66 for MSVC. --- scons/gallium.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index b6c05ecd800..1dcfa6b243c 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -529,6 +529,10 @@ def generate(env): else: env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group' if env['platform'] == 'windows': + linkflags += [ + '-Wl,--nxcompat', # DEP + '-Wl,--dynamicbase', # ASLR + ] # Avoid depending on gcc runtime DLLs linkflags += ['-static-libgcc'] if 'w64' in env['CC'].split('-'): @@ -547,8 +551,8 @@ def generate(env): linkflags += [ '/fixed:no', '/incremental:no', - '/dynamicbase', - '/nxcompat', + '/dynamicbase', # ASLR + '/nxcompat', # DEP ] env.Append(LINKFLAGS = linkflags) env.Append(SHLINKFLAGS = shlinkflags) -- 2.30.2