scons: Do not use ld options start-group and end-group on Darwin.

Mac OS X ld does not support these options.
This commit is contained in:
Vinson Lee
2010-01-23 21:43:26 -08:00
parent d57ba16ae3
commit 6b55aacccb

View File

@@ -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