scons: Add -fno-common for 64-bit builds on Mac OS X.
authorVinson Lee <vlee@vmware.com>
Tue, 17 Aug 2010 07:20:58 +0000 (00:20 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 17 Aug 2010 07:20:58 +0000 (00:20 -0700)
This option is also needed for 64-bit builds if llvm is enabled.
Other the build fails during linking.

scons/gallium.py

index 03a4ef58815f1cf434ecaf9a40709f01fd93214c..d9a5fe0eeafc6d5e63163880f0aac83856b838ed 100644 (file)
@@ -291,6 +291,8 @@ def generate(env):
                 ]
         if env['machine'] == 'x86_64':
             ccflags += ['-m64']
+            if platform == 'darwin':
+                ccflags += ['-fno-common']
         # See also:
         # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
         ccflags += [