From 35a34143026785e015adb906756651807de89bde Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 19 Dec 2013 15:55:28 -0800 Subject: 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 --- scons/llvm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scons') 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 -- cgit v1.2.3