uClibc, libstdc++, and readdir()

Mike Frysinger vapier at gentoo.org
Wed May 31 08:29:41 UTC 2006


On Wednesday 31 May 2006 02:03, Peter S. Mazinger wrote:
> On Wed, 31 May 2006, Mike Frysinger wrote:
> > On Tuesday 30 May 2006 16:20, Peter S. Mazinger wrote:
> > > That happens for ex. if you have libc.so /lib and libc.a in /usr/lib,
> > > libc.so is not found "early enough" unless you create a link
> > > /usr/lib/libc.so
> > >
> > > If that is a feature or bug in compiler I have never asked ;)
> >
> > feature i would say
> >
> > if you have your own lib, say libfoo.a, and you do `gcc -L. -lfoo`, you
> > would want the local libfoo.a to be found, not skipped, if there were a
> > libfoo.so in the linker search path
>
> If I invert the conditions and I have a local libfoo.so (-L.) and a
> /usr/lib/libfoo.a, then libfoo.a is found?

no

the "problem" is that the first lib found in the search path is used ... so if 
you're making a dynamic object, ld will select either libfoo.a or 
libfoo.so ... but if you're making a static object, ld will only select 
libfoo.a
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060531/4030dbfc/attachment-0002.pgp 


More information about the uClibc mailing list