This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: DT_NEEDED
- To: kettenis at science dot uva dot nl (Mark Kettenis)
- Subject: Re: DT_NEEDED
- From: Bharadwaj Yadavalli <sby at ives dot lkg dot dec dot com>
- Date: Fri, 18 May 2001 11:51:25 -0400 (EDT)
- Cc: binutils at sources dot redhat dot com
- Reply-To: Bharadwaj Yadavalli <bharadwaj dot yadavalli at compaq dot com>
On Fri May 18 11:39:11 2001 Mark Kettenis <kettenis@science.uva.nl> wrote :
> >
> > gcc -L/full/path/to -shared -o libfoo.so foo.c -la -lb
> >
> > but got the full path of liba.so and libb.so listed in the dependency
> > list of libfoo.so.
>
> Are you sure that the second example does indeed encode the full
> pathname? I just did something similar with GNU ld (a recent CVS version) on
> Solaris and it seems to work for me, that is, the full pathname isn't
> encoded in the DT_NEEDED entry.
As you may have noticed, I have corrected myself in an earlier
mail sent to the binutils list as I found that the linker behaves
correctly using the command-line args. -L and -l. I erred in
my previous tests.
Sorry about the confusion.
Regards,
Bharadwaj