Mesa (master): scons: Add -fno-common for 64-bit builds on Mac OS X.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Aug 17 07:22:29 UTC 2010
Module: Mesa
Branch: master
Commit: 462e8a8b0d0836c2c2e3b4bf137ecd17db7292d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=462e8a8b0d0836c2c2e3b4bf137ecd17db7292d2
Author: Vinson Lee <vlee at vmware.com>
Date: Tue Aug 17 00:20:58 2010 -0700
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.
---
scons/gallium.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scons/gallium.py b/scons/gallium.py
index 03a4ef5..d9a5fe0 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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 += [
More information about the mesa-commit
mailing list