|
Set the SONAME of the library to it's full path
as in $(CC) -shared -W1,-soname,/myhome/lib/libfoo.so foo.o -o /myhome/libfoo.so
then when an application links against it the full path will be recorded.
confirm with ldd.
Also you may want to look at -rpath
|