diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-07-16 21:26:43 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-07-16 21:27:14 +0100 |
commit | 6f81b78cb4354af0c5a13805bcb59758a3db1c5e (patch) | |
tree | 4bd25ab0f64a61c2e98899db983e649d52d7d2a7 /scons | |
parent | 5cf0789f91354b00c055825c2764b14ce1ba09a9 (diff) |
scons: Make PIPE_ALIGN_VAR() of static/global vars work on MinGW.
Workaround http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37216
Diffstat (limited to 'scons')
-rw-r--r-- | scons/gallium.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index dd7275460d..388f4460ab 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 |