diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-10-07 10:20:36 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-10-08 00:07:06 +0300 |
commit | 225c93c5c056f6afebb3b1d0635cc974f36b095b (patch) | |
tree | e9e4b915cdfa0d2a58dd7846fd582aa68b9a5bc4 /mesonbuild | |
parent | 506eb998d1673ee55e080390c66f6a2c3db9e882 (diff) | |
download | meson-225c93c5c056f6afebb3b1d0635cc974f36b095b.zip meson-225c93c5c056f6afebb3b1d0635cc974f36b095b.tar.gz meson-225c93c5c056f6afebb3b1d0635cc974f36b095b.tar.bz2 |
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
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/linkers.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |