Gentoo Archives: gentoo-dev

From: "Paweł Hajdan
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
Date: Mon, 26 Jul 2010 20:44:16
In Reply to: [gentoo-dev] News item announcing as-needed (glep 42 stuff) by "Tomáš Chvátal"
On 7/26/10 1:29 PM, Tomáš Chvátal wrote:
> Title: --as-needed enabled in default profiles > Author: Tomáš Chvátal <scarabeus@g.o> > Content-type: text/plain > Posted: 2010-07-26 > Revision: 1 > News-Item-Format: 1.0 > > Starting today all applications emerged on your system are linked > together with additional LDFLAGS="-Wl,--as-needed". This option > allows us to avoid linking extra libraries into the final binary > improving startup times and more importantly making binaries more > resistant to a library SONAME changes [1].
How about making it less technical? Just say that you'll need to rebuild less packages on average after a library upgrade than before.
> To gain the benefits of the change you should doublecheck your > value of LDFLAGS in make.conf because the variable does not fold and > your make.conf value is final. So after checking it and potentially > removing we suggest rebuilding whole system to benefit from it.
This might be a bit unclear to less savvy users. How about just make sure your LDFLAGS in /etc/make.conf contains "-Wl,--as-needed" or is unset?
> Overriding the in-profiles value is quite simple as described by > previous paragraph. Just put simply LDFLAGS="-Wl,01" in make.conf.
Instead of saying "overriding", I'd say something more similar to "disabling --as-needed" and add that it is not recommended. Paweł P.S. It's nice to see this happening, thanks!


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff) Joshua Saddler <nightmorph@g.o>