scons: Set -static-libstdc++ on mingw-w64
[mesa.git] / 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']