$ LD_DEBUG=libs <executable name> <args>
And you probably want a runpath relative to $ORIGIN
For a tree like:
MyApp
|
+-- bin
|
+-- lib
set runpath '$ORIGIN/../lib' (the loader will follow that by searching /lib, /usr/lib)
That thing that looks like a shell variable above IS NOT, it is a special flag (including the '$').
No, do not hack LD_LIBRARY_PATH, change the executable (and libraries as required).
Last edited by knc1; 11-26-2016 at 03:51 AM.
|