scons: Do not use ld options start-group and end-group on Darwin.
authorVinson Lee <vlee@vmware.com>
Sun, 24 Jan 2010 05:43:26 +0000 (21:43 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 24 Jan 2010 05:43:26 +0000 (21:43 -0800)
Mac OS X ld does not support these options.

scons/gallium.py

index f4e82e8e0a58c046d3c36db99eb18426bc2372a6..2d963a5f9e8c6cec409253b345d32840edf208f8 100644 (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