summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-09-06 13:14:09 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-09-06 13:18:58 +0100
commit129ace49f457858bc7640b67cf5dd688aee50323 (patch)
treeb5dd3fe68a8732719f48aaedb0fd4e754664bc85 /scons
parent0646246cae023333220aebddd142670858f70e5a (diff)
scons: Set -static-libstdc++ on mingw-w64
To avoid depending on libstdc++-xxx.dll
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 5103b924855..dc77904f06d 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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']