1 |
On Mon, Jul 26, 2010 at 10:29:06PM +0200, Tomáš Chvátal wrote: |
2 |
> Hi guys, |
3 |
> See the attachment for the draft. |
4 |
> |
5 |
> Please improve it to be an actual English :P |
6 |
|
7 |
How about: |
8 |
|
9 |
-Wl,--as-needed has been added to the default profile's LDFLAGS. |
10 |
|
11 |
This option optimizes the linking process, only linking binaries to |
12 |
libraries that are trully needed. This way, fewer libraries are loaded |
13 |
at runtime and fewer packages need to be rebuilt on library updates. |
14 |
|
15 |
Setting LDFLAGS in your make.conf will override the default. In that |
16 |
case, if you want the new setting you have to either remove LDFLAGS, |
17 |
or append " -Wl,--as-needed" to it (sans the quotes) yourself. |
18 |
|
19 |
To take advantage of the new default you can either rebuild world or |
20 |
allow the system to migrate slowly through updates. |
21 |
|
22 |
To disable the new default (not recommended) you can define your own |
23 |
LDFLAGS in make.conf. LDFLAGS="-Wl,-O1" will suffice. |
24 |
|
25 |
For more information on --as-needed, read [1]. |
26 |
|
27 |
[1] http://www.gentoo.org/proj/en/qa/asneeded.xml |
28 |
|
29 |
-- |
30 |
Alex Alexander -=- wired |
31 |
Gentoo Linux Developer -=- Council / Qt / KDE / more |
32 |
www.linuxized.com |