aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klumpp <matthias@tenstral.net>2016-12-19 23:24:03 +0100
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2016-12-21 15:49:44 +0100
commita9c09e6004ff1b5344782e698549e9fba041fca9 (patch)
tree6fbd4ec43ce589274f95de2b2347b1583c1470c5
parentfc72aa1e65cbe6b36af16c480b8a892bdef7638a (diff)
downloadmeson-a9c09e6004ff1b5344782e698549e9fba041fca9.zip
meson-a9c09e6004ff1b5344782e698549e9fba041fca9.tar.gz
meson-a9c09e6004ff1b5344782e698549e9fba041fca9.tar.bz2
ldc: Protect linker flags from deduplication
This is the better way to pass arguments through to the linker when compiling D code with LDC.
-rw-r--r--mesonbuild/backend/backends.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index dc39ce4..10167e8 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -373,7 +373,7 @@ class Backend():
if not isinstance(d, (build.StaticLibrary, build.SharedLibrary)):
raise RuntimeError('Tried to link with a non-library target "%s".' % d.get_basename())
if isinstance(compiler, compilers.LLVMDCompiler):
- args.extend(['-L', self.get_target_filename_for_linking(d)])
+ args += ['-L' + self.get_target_filename_for_linking(d)]
else:
args.append(self.get_target_filename_for_linking(d))
# If you have executable e that links to shared lib s1 that links to shared library s2