diff options
author | Phillip Cao <ftechz@gmail.com> | 2018-11-05 08:43:38 +1300 |
---|---|---|
committer | Phillip Cao <ftechz@gmail.com> | 2018-11-08 00:02:24 +1300 |
commit | 76333d2a1e5e5fde5ebece478dae8a22091b5cb9 (patch) | |
tree | 6ba84ed7d1757833459d5991305f97f90d8cc6b9 /mesonbuild | |
parent | fc77ec92438b79416299bb81b68f4d27633a5a4e (diff) | |
download | meson-76333d2a1e5e5fde5ebece478dae8a22091b5cb9.zip meson-76333d2a1e5e5fde5ebece478dae8a22091b5cb9.tar.gz meson-76333d2a1e5e5fde5ebece478dae8a22091b5cb9.tar.bz2 |
Add prefix option for link args
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 | ||||
-rw-r--r-- | mesonbuild/compilers/compilers.py | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 370e35b..4040251 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -607,6 +607,8 @@ class Backend: continue if compiler.get_language() == 'd': arg = '-Wl,' + arg + else: + arg = compiler.get_linker_lib_prefix() + arg args.append(arg) return args diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 514aa38..495663e 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -898,6 +898,9 @@ class Compiler: def get_linker_always_args(self): return [] + def get_linker_lib_prefix(self): + return '' + def gen_import_library_args(self, implibname): """ Used only on Windows for libraries that need an import library. @@ -1896,6 +1899,9 @@ class CcrxCompiler: def get_linker_exelist(self): return [self.linker_exe] + def get_linker_lib_prefix(self): + return '-lib=' + def get_coverage_args(self): return [] |