[oe] LDFLAGS += "--as-needed" ?

Holger Freyther freyther at gmx.net
Sun Feb 4 23:43:30 UTC 2007


Am 05.02.2007 um 00:25 schrieb Koen Kooi:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I have encountered a few packages that have unnecessary  
> dependencies due to excessive
> linking. A while back we discussed passing '--as-needed' to ld to  
> get rid of those. My
> question is: what happens when software uses gcc to link?
>
> Do we want to enable such a thing globally?

then we should pass --as-needed to the linker (-Wl,)?

But the real question is:
	Who is going to fix libtool once again? From my KDE experience I  
remember libtool randomly reordering libraries which broke --as- 
needed badly. But my memory is vague and could be corrupted...



h.




More information about the Openembedded-devel mailing list