scons: Set -static-libstdc++ on mingw-w64

To avoid depending on libstdc++-xxx.dll
This commit is contained in:
José Fonseca 2011-09-06 13:14:09 +01:00
parent 0646246cae
commit 129ace49f4
1 changed files with 2 additions and 0 deletions

View File

@ -537,6 +537,8 @@ def generate(env):
if env['platform'] == 'windows':
# Avoid depending on gcc runtime DLLs
linkflags += ['-static-libgcc']
if env['machine'] == 'x86_64':
linkflags += ['-static-libstdc++']
# Handle the @xx symbol munging of DLL exports
shlinkflags += ['-Wl,--enable-stdcall-fixup']
#shlinkflags += ['-Wl,--kill-at']