From: Vinson Lee Date: Thu, 19 Dec 2013 23:55:28 +0000 (-0800) Subject: scons: Add system library linker flags on LLVM 3.5. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35a34143026785e015adb906756651807de89bde;p=mesa.git scons: Add system library linker flags on LLVM 3.5. llvn-3.5svn r197664 split out the linker flags from ldflags to system-libs. Signed-off-by: Vinson Lee --- diff --git a/scons/llvm.py b/scons/llvm.py index 8388d8e9fc2..6282cb5382f 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