LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] TOTD: ld's rpath option...

[ILUG] TOTD: ld's rpath option...

Paul Jakma paul at clubi.ie
Wed Dec 8 16:57:34 GMT 2004


Hi,

Handy tip if you want to install a shared library to a strange 
location but want your application to be able to find it without fuss 
(ie without having to add $strange_location to /etc/ld.so.conf): use 
the -rpath option of ld to specify an absolute path to the library or 
the directory it is located in, eg -rpath /usr/lib64/strange_dir. 
This'd result in:

# ldd app | grep strange_location
          libwhatever.so.0 => /usr/lib64/strange_dir/libwhatever.so.0 (0x0000003c1c400000)

This might be useful in order to avoid cluttering a standard lib 
directory even further, or for shipping your own version of a common 
library (though, what happens in latter case if system /also/ has 
that library, i dont know).

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
He who spends a storm beneath a tree, takes life with a grain of TNT.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell