From cd134b78c08816e92412c5a7f5907d8f40195dbb Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 22 Jul 2019 11:02:23 -0700 Subject: [PATCH] linkers: Add the armclang dynamic linker --- mesonbuild/linkers.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 0cc3d76fc..52c65c617 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -692,3 +692,18 @@ class ArmDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): def get_allow_undefined_args(self) -> typing.List[str]: return [] + + +class ArmClangDynamicLinker(ArmDynamicLinker): + + """Linker used with ARM's clang fork. + + The interface is similar enough to the old ARM ld that it inherits and + extends a few things as needed. + """ + + def export_dynamic_args(self, env: 'Environment') -> typing.List[str]: + return ['--export_dynamic'] + + def import_library_args(self, implibname: str) -> typing.List[str]: + return ['--symdefs=' + implibname]