Commit 462e8a8b authored by Vinson Lee's avatar Vinson Lee

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.
parent 6043ee6e
...@@ -291,6 +291,8 @@ def generate(env): ...@@ -291,6 +291,8 @@ def generate(env):
] ]
if env['machine'] == 'x86_64': if env['machine'] == 'x86_64':
ccflags += ['-m64'] ccflags += ['-m64']
if platform == 'darwin':
ccflags += ['-fno-common']
# See also: # See also:
# - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
ccflags += [ ccflags += [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment