From db7503690ce4946b64056acc72c3487468e528a6 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Thu, 29 Sep 2022 10:07:30 -0700 Subject: AIX: allow link_whole, it's the only supported behaviour anyway As ld's manpage says: "The ld command processes all input files in the same manner, whether they are archives or not" --- mesonbuild/linkers/linkers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 85fbcee..2f0fcda 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -1405,6 +1405,12 @@ class AIXDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): def get_allow_undefined_args(self) -> T.List[str]: return self._apply_prefix(['-berok']) + def get_link_whole_for(self, args: T.List[str]) -> T.List[str]: + # AIX's linker always links the whole archive: "The ld command + # processes all input files in the same manner, whether they are + # archives or not." + return args + def build_rpath_args(self, env: 'Environment', build_dir: str, from_dir: str, rpath_paths: T.Tuple[str, ...], build_rpath: str, install_rpath: str) -> T.Tuple[T.List[str], T.Set[bytes]]: -- cgit v1.1