diff options
author | GoaLitiuM <goalitium@kapsi.fi> | 2018-09-06 03:57:45 +0300 |
---|---|---|
committer | GoaLitiuM <goalitium@kapsi.fi> | 2018-09-06 03:57:45 +0300 |
commit | 6e160995b0e9b1125abc211e17844752f47b650d (patch) | |
tree | cb3a03eb9852c672cd661b5c990cd7307e4dbed1 /mesonbuild/compilers/d.py | |
parent | 289c1bf91992c167e8ec4292f2584a4add7f5485 (diff) | |
download | meson-6e160995b0e9b1125abc211e17844752f47b650d.zip meson-6e160995b0e9b1125abc211e17844752f47b650d.tar.gz meson-6e160995b0e9b1125abc211e17844752f47b650d.tar.bz2 |
Improve D link argument handling
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r-- | mesonbuild/compilers/d.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 5beacbd..9ad0599 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -122,9 +122,8 @@ class DCompiler(Compiler): def get_linker_search_args(self, dirname): # -L is recognized as "add this to the search path" by the linker, - # while the compiler recognizes it as "pass to linker". So, the first - # -L is for the compiler, telling it to pass the second -L to the linker. - return ['-L=-L' + dirname] + # while the compiler recognizes it as "pass to linker". + return ['-Wl,-L' + dirname] def get_coverage_args(self): return ['-cov'] @@ -231,7 +230,7 @@ class DCompiler(Compiler): paths = padding else: paths = paths + ':' + padding - return ['-L=-rpath={}'.format(paths)] + return ['-Wl,-rpath={}'.format(paths)] def _get_compiler_check_args(self, env, extra_args, dependencies, mode='compile'): if extra_args is None: |