If I understand correctly, the variables LIBPATH and LD_LIBRARY_PATH have a higher priority than the argument to the linker -blibpath. I'm looking for how to tell the loader to search for libraries along the paths prescribed during compilation (that is, -blibpath or some other). On linux, for example, there is -rpath, which has priority higher than variables. I'm looking for an analog on AIX.
I'm also looking for where the priority of paths for finding libraries on AIX is clearly described.
-bipathyou can store the full path of the shared object. Details here: lzsiga.users.sourceforge.net/aix-linking.html-Wl,-bipathwhenldis invoked fromgcc