Mesa (master): scons: Do not use linker option '-Bsymbolic' on Mac OS X.

Vinson Lee vlee at kemper.freedesktop.org
Thu Jan 28 09:35:29 UTC 2010


Module: Mesa
Branch: master
Commit: 51ab599ddb213d6b846f333bbf03d5f6dde4831f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=51ab599ddb213d6b846f333bbf03d5f6dde4831f

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Jan 28 01:32:15 2010 -0800

scons: Do not use linker option '-Bsymbolic' on Mac OS X.

ld on Mac OS X does not recognize the option '-Bsymbolic'.

---

 scons/gallium.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 91a2fbb..467b67f 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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




More information about the mesa-commit mailing list