Description
Hi community members,
Currently in AIX, there is no way [as far as I have searched] to pass install_path during the build while using Meson unless and until a project has given provision for the same using an option.
What we are looking for is something like CMAKE_INSTALL_RPATH.
Is there any way we can do the same in Meson?
If we cannot, then in AIX, we do pass in an environment variable called LD_FLAGS.
For example,
export LDFLAGS="-Wl,-blibpath:/opt/freeware/lib/pthread:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib"
When we pass like this gcc understands that this is a linker flag and we are asking the compiler to set the LIBPATH within the XCOFF object to the blibpath mentioned in LDFLAGS.
By doing so when we dump a shared object we get,
If you see the path is what I have given from LDFLAGS when I created this library manually. [See Import File strings Index 0]
When we compile a package through pip in particular there is no way to tell meson that Hey we are looking to add the LDFLAGS blibpath that should override the build_rpath.
Hence I would like to add this feature in Meson for AIX by making some changes here.
Kindly let me know if we can proceed to add this via LDFLAGS environment variable or if the community has some other way to achieve the same.