View Single Post
Old 11-26-2016, 03:43 AM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
$ 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.
knc1 is offline   Reply With Quote