svn commit: trunk/uClibc: ldso/libdl libc libcrypt libintl libm l etc...

Mike Frysinger vapier at gentoo.org
Tue Nov 22 15:20:11 UTC 2005


On Tue, Nov 22, 2005 at 01:49:31PM +0100, Peter S. Mazinger wrote:
> >  headers-y: $(headers-y)
> > -ld-uClibc-y: $(ld-uClibc-y)
> >  interp-y: $(interp)
> > -pre-y: interp-y ld-uClibc-y
> > -libc-y: pre-y $(libc) crt-y $(top_builddir)lib/$(NONSHARED_LIBNAME)
> > -lib-so-y: libc-y $(lib-so-y)
> > -lib-a-y: crt-y $(lib-a-y)
> > +pre-y: $(interp) $(ld-uClibc-y)
> > +libc-y: pre-y $(libc) $(crt-y) $(top_builddir)lib/$(NONSHARED_LIBNAME)
> > +ldso-dep = 
> > +libc-so-dep = $(top_builddir)lib/libc.so $(interp)
> > +lib-so-y = $(libc-so-dep) $(lib-so-y)
> > +lib-a-y = $(crt-y) $(lib-a-y)
> 
> are these left in on purpose: pre-y/libc-y ?

i didnt really look into pre-y/libc-y ... if you wanna trim em, that'd
be great ;)

> > -$(top_builddir)lib/libdl.so: $(libdl_OUT)/libdl_so.a ld-uClibc-y libc-y
> > +$(top_builddir)lib/libdl.so: $(libdl_OUT)/libdl_so.a $(ld-uClibc-y) $(libc-so-dep)
> >
> > -$(top_builddir)lib/libdl.a: $(libdl-a-y)
> > +$(top_builddir)lib/libdl.a: $(libdl-a-y) $(libdl_OUT)/libdl_so.a
> >  endif
> 
> this will add libdl.oS to libdl.a (intended only for libdl.so), libdl.a 
> has it's own libdl.os (or .o depending on DOPIC)

the order should never affect the library like this ... if it does,
then the way the object lists are declared and generated is broken,
nothing else

same goes for all the other libraries you commented on

> > -lib-a-y += $(top_builddir)lib/libc.a crt-y
> > -lib-so-y += libc-y $(top_builddir)lib/$(NONSHARED_LIBNAME) crt-y
> > +lib-a-y += $(top_builddir)lib/libc.a $(crt-y)
> > +lib-so-y += libc-y $(top_builddir)lib/$(NONSHARED_LIBNAME) $(crt-y)
> >  objclean-y += libc_clean
> 
> libc-y ?

it can probably go

> for libc it is easier to separate maybe doing libc-common-y before we add 
> libc-static-y to libc-a-y, then what needs to be stripped is libc-shared-y 
> (everything that goes to libc-so-y and is not common to 
> libc-so-y/libc-a-y) and libc-static-y (goes to libc-a-y, but not to 
> libc-so-y)

i didnt look into exactly how these variables work, so you'd know better

> make oldconfig && make -j2 fails (headers not run early enough)

i know, but headers need more work than this
-mike



More information about the uClibc mailing list