summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-01-23 21:43:26 -0800
committerVinson Lee <vlee@vmware.com>2010-01-23 21:43:26 -0800
commit6b55aacccbbc2c86f03eafab23d5d74bc165c9ed (patch)
tree99bf66cebb378854a301ceb42cbe792e7f32c5fb /scons
parentd57ba16ae3943a93071ef1bbab4a13725b8ea20c (diff)
scons: Do not use ld options start-group and end-group on Darwin.
Mac OS X ld does not support these options.
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index f4e82e8e0a..2d963a5f9e 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -476,7 +476,10 @@ def generate(env):
'-Wl,-Bsymbolic',
]
# Handle circular dependencies in the libraries
- env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
+ if env['platform'] in ('darwin'):
+ pass
+ else:
+ env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
if msvc:
if not env['debug']:
# enable Link-time Code Generation