[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dynamic linking to /usr/lib/xxxxx directory.



On Sat, Dec 16, 2006 at 09:50:18PM -0800, Steve Langasek <vorlon@debian.org> wrote:
> 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.

Except if they are private objects.

Mike



Reply to: