aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuís Ferreira <lsferreira169@gmail.com>2019-02-05 01:22:32 +0000
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-02-05 11:13:05 +0000
commitb90f196f179e090e640e1193835f6edb77a02909 (patch)
tree0a766c844277353a90c95df41fd2c6753cf25ef1
parent902aaf2ce67a8a2a21580685673400f675bf28c1 (diff)
downloadmeson-b90f196f179e090e640e1193835f6edb77a02909.zip
meson-b90f196f179e090e640e1193835f6edb77a02909.tar.gz
meson-b90f196f179e090e640e1193835f6edb77a02909.tar.bz2
d: fix linker due to argument errors
- revert some changes on d2483d44128778f4d7fe6b028abd2431d2e9f4cc commit. Signed-off-by: Luís Ferreira <lsferreira169@gmail.com>
-rw-r--r--mesonbuild/compilers/d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py
index 1390694..40906c5 100644
--- a/mesonbuild/compilers/d.py
+++ b/mesonbuild/compilers/d.py
@@ -380,7 +380,7 @@ class DCompiler(Compiler):
# translate library link flag
dcargs.append('-L=' + arg)
continue
- elif arg.startswith('-L'):
+ elif arg.startswith('-L/') or arg.startswith('-L./'):
# we need to handle cases where -L is set by e.g. a pkg-config
# setting to select a linker search path. We can however not
# unconditionally prefix '-L' with '-L' because the user might