d: fix linker due to argument errors

- revert some changes on d2483d4412 commit.

Signed-off-by: Luís Ferreira <lsferreira169@gmail.com>
pull/4885/head
Luís Ferreira 6 years ago committed by Nirbheek Chauhan
parent 902aaf2ce6
commit b90f196f17
  1. 2
      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

Loading…
Cancel
Save