From 8946bc05f7f9cdd16dce3613c481a66f7835fc7f Mon Sep 17 00:00:00 2001 From: Aditya Kamath <118170220+KamathForAIX@users.noreply.github.com> Date: Wed, 28 Jun 2023 00:32:32 +0530 Subject: Archive shared library in AIX (#11850) * Archive shared library in AIX This code change to ensure we archive shared libraries in AIX. The things we do are: Archive shared library Install archived shared library Build all must build the archived shared library blibpath must have the archived shared library dependency. * Archive shared library in AIX. Made changes as per the review comments given in the first PR request. They are:- Use self.environment.machines[t.for_machine].is_aix() Remove trial spaces Use of val instead of internal Changed comments wherever requested * Space after octothorpe * Fixed failed test case causing build break during install section * Moved AIX specific code to AIXDynamicLinker from backend * Fix indentation, trailing spaces, add type annotations and Linux/macOS build break * Remove some more trailing space issues * Fixed the wrong return type in linkers --- mesonbuild/compilers/compilers.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 3fd58968f..b8f51322b 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -938,6 +938,12 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): return self.linker.build_rpath_args( env, build_dir, from_dir, rpath_paths, build_rpath, install_rpath) + def get_archive_name(self, filename: str) -> str: + return self.linker.get_archive_name(filename) + + def get_command_to_archive_shlib(self) -> T.List[str]: + return self.linker.get_command_to_archive_shlib() + def thread_flags(self, env: 'Environment') -> T.List[str]: return [] -- cgit v1.2.3