scons: Make PIPE_ALIGN_VAR() of static/global vars work on MinGW.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Jul 2010 20:26:43 +0000 (21:26 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Jul 2010 20:27:14 +0000 (21:27 +0100)
Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216

scons/gallium.py

index dd7275460dae08b595f2db04256c95f3502976ec..388f4460ab492035c666da414343743624f2927b 100644 (file)
@@ -282,6 +282,9 @@ def generate(env):
                 ccflags += [
                     '-mmmx', '-msse', '-msse2', # enable SIMD intrinsics
                 ]
+            if platform == 'windows':
+                # Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
+                ccflags += ['-fno-common']
             if distutils.version.LooseVersion(ccversion) >= distutils.version.LooseVersion('4.2'):
                 ccflags += [
                     '-mstackrealign', # ensure stack is aligned