scons: Set -static-libstdc++ on mingw-w64
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 6 Sep 2011 12:14:09 +0000 (13:14 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 6 Sep 2011 12:18:58 +0000 (13:18 +0100)
To avoid depending on libstdc++-xxx.dll

scons/gallium.py

index 5103b9248551aba126b9c0012dc52d1d00006f21..dc77904f06d2439f939ca6b6ce10b15a8566bfcd 100755 (executable)
@@ -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']