--as-needed

Jakub Bogusz qboosh at pld-linux.org
Thu Feb 21 22:16:31 CET 2008


On Thu, Feb 21, 2008 at 01:30:38AM +0200, Elan Ruusamäe wrote:
> On Wednesday 20 February 2008 23:33, Jakub Bogusz wrote:
> > It looks like Ac. And which libtool version (patches) are you using?
> thx. it is ac unpatched libtool.
> 
> > [1] still not perfect, as it's not possible to do
> > -Wl,-no-as-needed -lsome-lib -Wl,-as-needed -lother-lib
> > - but with unpatched libtool it doesn't work either)
> 
> i've seen this when compiled one kernel module, gcc (i think) did it 
> internally. other question is, did it work. i guess not if you say so.

With plain gcc calls it works; IIRC glibc build uses it.
Only libtool's arguments reordering messes such linking.


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list