From 6b55aacccbbc2c86f03eafab23d5d74bc165c9ed Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 23 Jan 2010 21:43:26 -0800 Subject: scons: Do not use ld options start-group and end-group on Darwin. Mac OS X ld does not support these options. --- scons/gallium.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scons/gallium.py') 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 -- cgit v1.2.3