diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-04 22:25:24 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-04 22:25:24 +0200 |
commit | 1dfa98b32d78af11e8a99afa6669846a26aca424 (patch) | |
tree | 6f2850744ba4f81481b97556b7ba67b21e8e90a2 | |
parent | bd277690301955c23f8457f726cdc18325ac1b43 (diff) | |
download | meson-ldc2soname.tar.gz |
Add -L= to soname linker argument, too.ldc2soname
-rw-r--r-- | mesonbuild/compilers/d.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index a22e8d4ec..c9e8b4472 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -391,7 +391,10 @@ class DmdLikeCompilerMixin: def get_soname_args(self, *args, **kwargs) -> typing.List[str]: # LDC and DMD actually do use a linker, but they proxy all of that with # their own arguments - return Compiler.get_soname_args(self, *args, **kwargs) + soargs = [] + for arg in Compiler.get_soname_args(self, *args, **kwargs): + soargs.append('-L=' + arg) + return soargs def get_allow_undefined_link_args(self) -> typing.List[str]: args = [] |