aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-11-04 22:25:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-06 22:12:41 +0200
commit4c96aa34cb415ca654c0571280386880e9d14ca3 (patch)
tree5d685693b1f4f290a3f1a63e65e38f6596705113
parent32f64aa2cb6eb09ad858275d22fc52439c4f860d (diff)
downloadmeson-4c96aa34cb415ca654c0571280386880e9d14ca3.zip
meson-4c96aa34cb415ca654c0571280386880e9d14ca3.tar.gz
meson-4c96aa34cb415ca654c0571280386880e9d14ca3.tar.bz2
Add -L= to soname linker argument, too.
-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 a22e8d4..c9e8b44 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 = []