libtool
[Top][All Lists]
Advanced

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

Re: hppa*64* and dependent libraries


From: Albert Chin
Subject: Re: hppa*64* and dependent libraries
Date: Thu, 19 Dec 2002 13:30:27 -0600
User-agent: Mutt/1.4i

On Thu, Dec 19, 2002 at 12:45:55PM -0500, John David Anglin wrote:
> > ...
> >
> > We have two possible solutions:
> >   (1) ld -b +h lib2.sl.0 -o lib2.sl -L/tmp/a ../a/lib1.sl obj3.o obj4.o -lc
> >   (2) ld -b +h lib2.sl.0 -o lib2.sl -L/tmp/a -l1 obj3.o obj4.o -lc
> > 
> > I've confirmed the above behaviour with a post to the HP-UX Developer
> > Mailing List. It's frustrating that even though we explicitly list
> > a/lib1.sl in the link line, it doesn't help.
> > 
> > So, is there anything in libtool to already do this? If not, do we
> > adopt solution #1 or #2?
> 
> I suggest neither.  I believe that you don't want to try to hardcode
> the full path of libraries.  It is better to use "+b" to set the embedded
> path.  This is equivalent to the -rpath option when GNU ld is used.
> The standard dynamic path search order is LD_LIBRARY_PATH, SHLIB_PATH
> and then the embedded path.  The default is for all three to be enabled.
> The enables and search order can be changed with chatr if desired.

I agree that we should use +b to embed the path. Is everyone else in
agreement?

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]