Mesa (master): scons: Set -static-libstdc++ on mingw-w64

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Sep 6 13:07:53 UTC 2011


Module: Mesa
Branch: master
Commit: 129ace49f457858bc7640b67cf5dd688aee50323
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=129ace49f457858bc7640b67cf5dd688aee50323

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Sep  6 13:14:09 2011 +0100

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

To avoid depending on libstdc++-xxx.dll

---

 scons/gallium.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 5103b92..dc77904 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']




More information about the mesa-commit mailing list