diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-11-19 09:30:46 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-12-02 16:39:06 -0800 |
commit | ef9aeb188ea2bc7353e59916c18901cde90fa2b3 (patch) | |
tree | d1525c3c53703d1adb4c077399ab39909863c7dc /mesonbuild/compilers/mixins/gnu.py | |
parent | 7658e67f92ba55e2d8e466f818293a001f34a65f (diff) | |
download | meson-ef9aeb188ea2bc7353e59916c18901cde90fa2b3.tar.gz |
Allow selecting the dynamic linker
This uses the normal meson mechanisms, an LD environment variable or via
cross/native files.
Fixes: #6057
Diffstat (limited to 'mesonbuild/compilers/mixins/gnu.py')
-rw-r--r-- | mesonbuild/compilers/mixins/gnu.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index 64b0d3b0d..668348607 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -299,6 +299,10 @@ class GnuLikeCompiler(metaclass=abc.ABCMeta): return ['-isystem' + path] return ['-I' + path] + @classmethod + def use_linker_args(cls, linker: str) -> typing.List[str]: + return ['-fuse-ld={}'.format(linker)] + class GnuCompiler(GnuLikeCompiler): """ |