Gentoo Archives: gentoo-dev

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
Date: Tue, 27 Jul 2010 03:39:17
Message-Id: 20100726213805.61e164cc@gentoo.org
In Reply to: Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff) by Sebastian Pipping
1 On Tue, 27 Jul 2010 00:41:12 +0200
2 Sebastian Pipping <sping@g.o> wrote:
3
4 > I like that one better.
5 >
6 >
7 > Both proposals leave a question open to me, though:
8 > Do I understand correctly that I could integrate the in-profile value with
9 >
10 > LDFLAGS="${LDFLAGS} foo bar"
11 >
12 > in /etc/make.conf? Maybe that's something people want to do. If so
13 > maybe add a hint?
14
15 Yep. Can I suggest:
16
17 -Wl,--as-needed has been added to the default profile's LDFLAGS.
18
19 This option optimizes the linking process, only linking binaries to
20 libraries that are trully needed. This way, fewer libraries are loaded
21 at runtime and fewer packages need to be rebuilt after library updates.
22
23 To take advantage of the new default you can either rebuild world now or just
24 allow the system to migrate incrementally as it updates.
25
26 Please note that setting LDFLAGS="<your flags>" in your make.conf will
27 override the profile defaults. If you want to add additional LDFLAGS it is
28 recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to avoid this.
29
30 For more information on --as-needed, read [1].
31
32 [1] http://www.gentoo.org/proj/en/qa/asneeded.xml
33
34
35 --
36 fonts, gcc-porting, and it's all by design
37 toolchain, wxwidgets to keep us from losing our minds
38 @ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff) "Tomáš Chvátal" <scarabeus@g.o>
Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff) "Róbert Čerňanský" <hslists2@××××××.sk>