mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 05:00:09 +01:00
scons: add /dynamicbase and /nxcompat to MinGW linkflags
Just like b26503b196d51dc46c815e241343e42ab30e8d66 for MSVC.
This commit is contained in:
parent
4860e98972
commit
771ab951a8
1 changed files with 6 additions and 2 deletions
|
|
@ -529,6 +529,10 @@ def generate(env):
|
||||||
else:
|
else:
|
||||||
env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
|
env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
|
||||||
if env['platform'] == 'windows':
|
if env['platform'] == 'windows':
|
||||||
|
linkflags += [
|
||||||
|
'-Wl,--nxcompat', # DEP
|
||||||
|
'-Wl,--dynamicbase', # ASLR
|
||||||
|
]
|
||||||
# Avoid depending on gcc runtime DLLs
|
# Avoid depending on gcc runtime DLLs
|
||||||
linkflags += ['-static-libgcc']
|
linkflags += ['-static-libgcc']
|
||||||
if 'w64' in env['CC'].split('-'):
|
if 'w64' in env['CC'].split('-'):
|
||||||
|
|
@ -547,8 +551,8 @@ def generate(env):
|
||||||
linkflags += [
|
linkflags += [
|
||||||
'/fixed:no',
|
'/fixed:no',
|
||||||
'/incremental:no',
|
'/incremental:no',
|
||||||
'/dynamicbase',
|
'/dynamicbase', # ASLR
|
||||||
'/nxcompat',
|
'/nxcompat', # DEP
|
||||||
]
|
]
|
||||||
env.Append(LINKFLAGS = linkflags)
|
env.Append(LINKFLAGS = linkflags)
|
||||||
env.Append(SHLINKFLAGS = shlinkflags)
|
env.Append(SHLINKFLAGS = shlinkflags)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue