From 49d20a51c2f2389fd27c6a5122a8fe2b0227d8f1 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(-) diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index e33e7ac..aa39030 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -390,7 +390,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