From 4c96aa34cb415ca654c0571280386880e9d14ca3 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 4 Nov 2019 22:25:24 +0200 Subject: Add -L= to soname linker argument, too. --- mesonbuild/compilers/d.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers') 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 = [] -- cgit v1.1