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).
Paul Jakma paul at clubi.iepaul at jakma.org Key ID: 64A2FF6A
He who spends a storm beneath a tree, takes life with a grain of TNT.
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!