scons: Set -static-libstdc++ on mingw-w64
To avoid depending on libstdc++-xxx.dll
This commit is contained in:
parent
0646246cae
commit
129ace49f4
|
@ -537,6 +537,8 @@ def generate(env):
|
||||||
if env['platform'] == 'windows':
|
if env['platform'] == 'windows':
|
||||||
# Avoid depending on gcc runtime DLLs
|
# Avoid depending on gcc runtime DLLs
|
||||||
linkflags += ['-static-libgcc']
|
linkflags += ['-static-libgcc']
|
||||||
|
if env['machine'] == 'x86_64':
|
||||||
|
linkflags += ['-static-libstdc++']
|
||||||
# Handle the @xx symbol munging of DLL exports
|
# Handle the @xx symbol munging of DLL exports
|
||||||
shlinkflags += ['-Wl,--enable-stdcall-fixup']
|
shlinkflags += ['-Wl,--enable-stdcall-fixup']
|
||||||
#shlinkflags += ['-Wl,--kill-at']
|
#shlinkflags += ['-Wl,--kill-at']
|
||||||
|
|
Loading…
Reference in New Issue