summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-11-04 22:25:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-04 22:25:24 +0200
commit1dfa98b32d78af11e8a99afa6669846a26aca424 (patch)
tree6f2850744ba4f81481b97556b7ba67b21e8e90a2
parentbd277690301955c23f8457f726cdc18325ac1b43 (diff)
downloadmeson-ldc2soname.tar.gz
Add -L= to soname linker argument, too.ldc2soname
-rw-r--r--mesonbuild/compilers/d.py5
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 = []