Re: Dynamic linking to /usr/lib/xxxxx directory.
On Sat, Dec 16, 2006 at 10:54:20PM +0000, Paul Cager wrote:
> I'm packaging AFNIX which provides four or five executables and a bunch
> of shared objects that the executables use. Since the SOs are not likely
> to be of use to anything except the AFNIX system itself, I intend to
> install the SOs in /usr/lib/afnix/*.so. I'm a newbie as far as SOs are
> concerned, so can I ask a fairly basic question?
> How do I link the program so that the end-user does not have to set
> LD_LIBRARY_PATH? Is this a job for the "--rpath" ld parameter, or is
> there a better way?
You would use -rpath for this, yes. But please note that installing
libraries in private directories is discouraged by policy in any case.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vorlon@debian.org http://www.debian.org/
Reply to: