1 |
On 7/26/10 1:29 PM, Tomáš Chvátal wrote: |
2 |
> Title: --as-needed enabled in default profiles |
3 |
> Author: Tomáš Chvátal <scarabeus@g.o> |
4 |
> Content-type: text/plain |
5 |
> Posted: 2010-07-26 |
6 |
> Revision: 1 |
7 |
> News-Item-Format: 1.0 |
8 |
> |
9 |
> Starting today all applications emerged on your system are linked |
10 |
> together with additional LDFLAGS="-Wl,--as-needed". This option |
11 |
> allows us to avoid linking extra libraries into the final binary |
12 |
> improving startup times and more importantly making binaries more |
13 |
> resistant to a library SONAME changes [1]. |
14 |
|
15 |
How about making it less technical? Just say that you'll need to rebuild |
16 |
less packages on average after a library upgrade than before. |
17 |
|
18 |
> To gain the benefits of the change you should doublecheck your |
19 |
> value of LDFLAGS in make.conf because the variable does not fold and |
20 |
> your make.conf value is final. So after checking it and potentially |
21 |
> removing we suggest rebuilding whole system to benefit from it. |
22 |
|
23 |
This might be a bit unclear to less savvy users. How about just make |
24 |
sure your LDFLAGS in /etc/make.conf contains "-Wl,--as-needed" or is unset? |
25 |
|
26 |
> Overriding the in-profiles value is quite simple as described by |
27 |
> previous paragraph. Just put simply LDFLAGS="-Wl,01" in make.conf. |
28 |
|
29 |
Instead of saying "overriding", I'd say something more similar to |
30 |
"disabling --as-needed" and add that it is not recommended. |
31 |
|
32 |
> [1] http://www.gentoo.org/proj/en/qa/asneeded.xml |
33 |
|
34 |
Paweł |
35 |
|
36 |
P.S. It's nice to see this happening, thanks! |