I have a program foobar that uses shared libraries. I setup LD_LIBRARY_PATH correctly and then when I run
>ldd foobar
I can see that it knows full paths to all the libraries it needs.
However, on some systems ("bigger" ones), I don't need LD_LIBRARY_PATH for ldd to know where the libraries are, and on some ("smaller" ones) I do.
On both systems, the executable foobar is the same, the path to it is the same, and all the libraries and paths to them are the same.
So that means, the rpath built into the executable, is the same in both cases.
So there must be some other way to determine where the libraries are? What is it?