From 6f81b78cb4354af0c5a13805bcb59758a3db1c5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 16 Jul 2010 21:26:43 +0100 Subject: [PATCH] scons: Make PIPE_ALIGN_VAR() of static/global vars work on MinGW. Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216 --- scons/gallium.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scons/gallium.py b/scons/gallium.py index dd7275460da..388f4460ab4 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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 -- 2.30.2