scons: Use -static-libstdc++ on 32bits builds w/ Mingw-w64 too.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Nov 2011 09:58:52 +0000 (09:58 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 3 Nov 2011 09:59:34 +0000 (09:59 +0000)
scons/gallium.py

index c3350b3ca635b3c495809a7a24ee4b9009b1e3c8..18be73f769f5df0f871df5b5cfdaf8740e84ebd6 100755 (executable)
@@ -540,7 +540,7 @@ def generate(env):
         if env['platform'] == 'windows':
             # Avoid depending on gcc runtime DLLs
             linkflags += ['-static-libgcc']
-            if env['machine'] == 'x86_64':
+            if 'w64' in env['CC'].split('-'):
                 linkflags += ['-static-libstdc++']
             # Handle the @xx symbol munging of DLL exports
             shlinkflags += ['-Wl,--enable-stdcall-fixup']