Skip to contentSkip to conversation

LDFLAGS += "--as-needed" ?

DISCUSSION Koen Kooi 2 participants 2 messages Feb 4, 2007

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----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?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFxmtZMkyGM64RGpERAkU0AJ9dUyLBgjeFsLXUNgppjRoE2kwZawCZAWR3 xalcH4cdKcmkIqiZZJVLIEc=
=DJfZ
-----END PGP SIGNATURE-----

#1 lore raw

Am 05.02.2007 um 00:25 schrieb Koen Kooi:

Quoted 10 lines

-----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.