[Mesa-dev] [PATCH] scons: Add system library linker flags on LLVM 3.5.

Vinson Lee vlee at freedesktop.org
Thu Dec 19 16:04:02 PST 2013


llvn-3.5svn r197664 split out the linker flags from ldflags to
system-libs.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 scons/llvm.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scons/llvm.py b/scons/llvm.py
index 8388d8e..6282cb5 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -202,6 +202,8 @@ def generate(env):
 
             env.ParseConfig('llvm-config --libs ' + ' '.join(components))
             env.ParseConfig('llvm-config --ldflags')
+            if llvm_version >= distutils.version.LooseVersion('3.5'):
+                env.ParseConfig('llvm-config --system-libs')
         except OSError:
             print 'scons: llvm-config version %s failed' % llvm_version
             return
-- 
1.8.3.2



More information about the mesa-dev mailing list