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

Re: -L not working properly?



On Sun, Jun 16, 2002 at 11:23:37PM +0200, Michel Dänzer wrote:
> On Sun, 2002-06-16 at 02:00, Jason E. Stewart wrote: 
> > "Michel Dänzer" <daenzer@debian.org> writes:
> > 
> > > > I thought the order of -L flags was 'last seen, first used'? What
> > > > would make the linker not use that order?
> > > 
> > >            The directories are searched in the order in which they
> > >            are specified on the command line.
> > > 
> > > So it seems -L/usr/lib is not only redundant but harmful here.
> > 
> > Hey Michel,
> > 
> > So am I delusional, and -L never worked in 'last seen, first used'
> > order? I thought the whole point was to be able to do things like:
> > 
> >   -L/priv/lib1 -llib1 -L/priv/lib2 -lib2 -L/priv/lib2 -lib3 ...
> > 
> > and ensure you were getting the correct libraries?
> 
> Please RTFM. :) One of the next sentences I omitted is: 'All -L options apply
> to  all  -l options,  regardless of the order in which the options appear.'
> 
> > I'm downloading code off standard repositories that is suddenly not
> > linking because of this - did it change recently??
> 
> No idea, I wouldn't expect it it did though.

No, this has not changed in some time.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
MontaVista Software                         Carnegie Mellon University


-- 
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: