From 225c93c5c056f6afebb3b1d0635cc974f36b095b Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 7 Oct 2019 10:20:36 -0700 Subject: linkers: Concatenate -L and the directory It is perfectly valid to pass the arguments separately `-L /some/dir/`, however, meson later groups arguments by whether they start with -L or not, which breaks passing the -L and the directory separately. Fixes #6003 --- mesonbuild/linkers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild') diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 65a7e2c..e9bc8d2 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -412,7 +412,7 @@ class PosixDynamicLinkerMixin: return ['-shared'] def get_search_args(self, dirname: str) -> typing.List[str]: - return ['-L', dirname] + return ['-L' + dirname] class GnuLikeDynamicLinkerMixin: -- cgit v1.1