scons: Add -fno-common for 64-bit builds on Mac OS X.

This option is also needed for 64-bit builds if llvm is enabled.
Other the build fails during linking.
This commit is contained in:
Vinson Lee 2010-08-17 00:20:58 -07:00
parent 6043ee6e62
commit 462e8a8b0d
1 changed files with 2 additions and 0 deletions

View 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 += [