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 3fbac760fdb71237c969e0363385e365eacac6ad..d20d02ca208cd18ff660e5d51e6f3e516fbdf792 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 31a4a79594048c65c3394a1de081c2b317fdc545..7592222fd6a4c3bf7169580adb6e4009bc168cf0 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 += [