Gentoo Archives: gentoo-dev

From: Alex Alexander <wired@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
Date: Mon, 26 Jul 2010 22:09:35
In Reply to: [gentoo-dev] News item announcing as-needed (glep 42 stuff) by "Tomáš Chvátal"
On Mon, Jul 26, 2010 at 10:29:06PM +0200, Tomáš Chvátal wrote:
> Hi guys, > See the attachment for the draft. > > Please improve it to be an actual English :P
How about: -Wl,--as-needed has been added to the default profile's LDFLAGS. This option optimizes the linking process, only linking binaries to libraries that are trully needed. This way, fewer libraries are loaded at runtime and fewer packages need to be rebuilt on library updates. Setting LDFLAGS in your make.conf will override the default. In that case, if you want the new setting you have to either remove LDFLAGS, or append " -Wl,--as-needed" to it (sans the quotes) yourself. To take advantage of the new default you can either rebuild world or allow the system to migrate slowly through updates. To disable the new default (not recommended) you can define your own LDFLAGS in make.conf. LDFLAGS="-Wl,-O1" will suffice. For more information on --as-needed, read [1]. [1] -- Alex Alexander -=- wired Gentoo Linux Developer -=- Council / Qt / KDE / more


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