The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM



Thread: dynamic linking
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-23-2007
porter porter is offline
Registered User
 

Join Date: Jan 2007
Posts: 2,965
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
Reply With Quote