Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: LD_AS_NEEDED="1" in profiles/targets/developer/make.defaults?
Date: Sat, 03 Oct 2009 20:15:54
Message-Id: 20091003201521.GM19056@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: LD_AS_NEEDED="1" in profiles/targets/developer/make.defaults? by Samuli Suominen
1 On 03-10-2009 22:35:58 +0300, Samuli Suominen wrote:
2 > Ciaran McCreesh wrote:
3 > > On Sat, 03 Oct 2009 22:13:59 +0300
4 > > Samuli Suominen <ssuominen@g.o> wrote:
5 > >> Since new binutils will support LD_AS_NEEDED="1" to force ld behave
6 > >> asneeded we could use this for the developer -target in profiles?
7 > >>
8 > >> Speak up if you think it's a terrible idea.
9 > >
10 > > Well, it does break correct code, so it's about on par with forcing
11 > > -ffast-math or -fno-exceptions or -fvisibility-inlines-hidden on
12 > > globally...
13 > >
14 >
15 > Be reasonable. We can add -Wl,--no-as-needed for those packages with
16 > valid code. And I'm certainly not suggesting adding it to base/, _only_
17 > for the developer target.
18
19 Please recall that this is a GNU binutils flag. I prefer the
20 environment flag over the command-line option, because it doesn't break
21 other linkers, but if it implies many ebuilds getting -Wl,--no-as-needed
22 append-ldflagged, then I'm not getting happy as that breaks my builds.
23
24
25 --
26 Fabian Groffen
27 Gentoo on a different level

Replies