From e8df59cc5f5c8ca6f700f62a2408ba873c1a3b5d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 6 Oct 2017 10:20:34 -0700 Subject: [PATCH] llvm: don't add --system-libs On LLVM < 4.0 this adds linker arguments like -lm, which we don't want. Related #2442, 2437 --- mesonbuild/dependencies/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 387300a37..b0e54c6d0 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -169,7 +169,7 @@ class LLVMDependency(ExternalDependency): self.version = out.strip().rstrip('svn') p, out = Popen_safe( - [self.llvmconfig, '--libs', '--ldflags', '--system-libs'])[:2] + [self.llvmconfig, '--libs', '--ldflags'])[:2] if p.returncode != 0: raise DependencyException('Could not generate libs for LLVM.') self.link_args = shlex.split(out)