diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index d94df4b10..4e24e4eac 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -286,7 +286,7 @@ class DmdLikeCompilerMixin(CompilerMixinBase): # see the comment in the "-L" section link_expect_arg = False link_flags_with_arg = [ - '-rpath', '-soname', '-compatibility_version', '-current_version', + '-rpath', '-rpath-link', '-soname', '-compatibility_version', '-current_version', ] for arg in args: # Translate OS specific arguments first.