--On Wednesday, August 17, 2022 1:31 PM -0400 Jeffrey Walton <[email protected]> wrote:
Nowadays on Linux you should specify a RUNPATH, not a RPATH. The RUNPATH allows LD_LIBRARY overrides to search paths. It is recommended by the folks who write the runtime loaders. The options you need are: * -Wl,-rpath,<lib path> (enables RPATH) * -Wl,--enable-new-dtags (enables RUNPATH)
If building into a custom (non-OS) location, you definitely want to avoid --enable-new-dtags, as the builds then use the local system libraries and not the libraries you built, causing mayhem.
Regards, Quanah
