OSDN Git Service

scons: Unbreak mingw builds.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 12:59:58 +0000 (12:59 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 12 Feb 2009 12:59:58 +0000 (12:59 +0000)
scons/gallium.py
scons/generic.py

index 3fbac76..d20d02c 100644 (file)
@@ -438,7 +438,7 @@ def generate(env):
             linkflags += ['-m32']
         if env['machine'] == 'x86_64':
             linkflags += ['-m64']
-    if platform == 'windows':
+    if platform == 'windows' and msvc:
         # See also:
         # - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx
         linkflags += [
index 31a4a79..7592222 100644 (file)
@@ -517,7 +517,7 @@ def generate(env):
             linkflags += ['-m32']
         if env['machine'] == 'x86_64':
             linkflags += ['-m64']
-    if platform == 'windows':
+    if platform == 'windows' and msvc:
         # See also:
         # - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx
         linkflags += [