Skip to content

Commit

Permalink
Fix to Meson failed to archive shared libraries in AIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
KamathForAIX committed Jan 27, 2025
1 parent dafa42b commit be6af66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3242,6 +3242,12 @@ def get_target_shsym_filename(self, target):

def generate_shsym(self, target) -> None:
target_file = self.get_target_filename(target)
if isinstance(target, build.SharedLibrary) and target.aix_so_archive:
if self.environment.machines[target.for_machine].is_aix():
linker, stdlib_args = target.get_clink_dynamic_linker_and_stdlibs()
target.get_outputs()[0] = linker.get_archive_name(target.get_outputs()[0])
target_file = target.get_outputs()[0]
target_file = os.path.join(self.get_target_dir(target), target_file)
symname = self.get_target_shsym_filename(target)
elem = NinjaBuildElement(self.all_outputs, symname, 'SHSYM', target_file)
# The library we will actually link to, which is an import library on Windows (not the DLL)
Expand Down

0 comments on commit be6af66

Please sign in to comment.