scons: Do not use linker option '-Bsymbolic' on Mac OS X.
authorVinson Lee <vlee@vmware.com>
Thu, 28 Jan 2010 09:32:15 +0000 (01:32 -0800)
committerVinson Lee <vlee@vmware.com>
Thu, 28 Jan 2010 09:34:40 +0000 (01:34 -0800)
ld on Mac OS X does not recognize the option '-Bsymbolic'.

scons/gallium.py

index 91a2fbbca699cb341b253771033253bfb06402bd..467b67fad7c3dfa9f9dda26512f464e26f0b18be 100644 (file)
@@ -393,9 +393,10 @@ def generate(env):
             linkflags += ['-m32']
         if env['machine'] == 'x86_64':
             linkflags += ['-m64']
-        shlinkflags += [
-            '-Wl,-Bsymbolic',
-        ]
+        if env['platform'] not in ('darwin'):
+            shlinkflags += [
+                '-Wl,-Bsymbolic',
+            ]
         # Handle circular dependencies in the libraries
         if env['platform'] in ('darwin'):
             pass