--- ./mesonbuild/minstall.py_orig	2025-04-14 23:29:40.947069843 -0500
+++ ./mesonbuild/minstall.py	2025-04-14 23:32:18.355909701 -0500
@@ -720,7 +720,10 @@
             # install the archive in which the shared library exists. The below code does the same.
             # We change the .so files having lt_version or so_version to archive file install.
             # If .so does not exist then it means it is in the archive. Otherwise it is a .so that exists.
+            is_static_lib_in_AIX = 0
             if is_aix():
+                if  os.path.exists(t.fname) and '.a' in t.fname:
+                    is_static_lib_in_AIX = 1
                 if not os.path.exists(t.fname) and '.so' in t.fname:
                     t.fname = re.sub('[.][a]([.]?([0-9]+))*([.]?([a-z]+))*', '.a', t.fname.replace('.so', '.a'))
             if not self.should_install(t):
@@ -767,8 +770,13 @@
             if file_copied:
                 self.did_install_something = True
                 try:
-                    self.fix_rpath(outname, t.rpath_dirs_to_remove, install_rpath, final_path,
-                                   install_name_mappings, verbose=False)
+                    if is_aix():
+                       if not is_static_lib_in_AIX:
+                           self.fix_rpath(outname, t.rpath_dirs_to_remove, install_rpath, final_path,
+                                          install_name_mappings, verbose=False)
+                    else:
+                        self.fix_rpath(outname, t.rpath_dirs_to_remove, install_rpath, final_path,
+                                       install_name_mappings, verbose=False)
                 except SystemExit as e:
                     if isinstance(e.code, int) and e.code == 0:
                         pass
