From: Vinson Lee Date: Sun, 24 Jan 2010 05:43:26 +0000 (-0800) Subject: scons: Do not use ld options start-group and end-group on Darwin. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b55aacccbbc2c86f03eafab23d5d74bc165c9ed;p=mesa.git scons: Do not use ld options start-group and end-group on Darwin. Mac OS X ld does not support these options. --- diff --git a/scons/gallium.py b/scons/gallium.py index f4e82e8e0a5..2d963a5f9e8 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