Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Date: Mon, 28 Jun 2010 07:44:15
Message-Id: 4C2852F6.30003@gentoo.org
In Reply to: Re: [gentoo-dev] Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults by Ciaran McCreesh
1 On 06/28/2010 10:35 AM, Ciaran McCreesh wrote:
2 > On Mon, 28 Jun 2010 06:39:44 +0530
3 > Nirbheek Chauhan <nirbheek@g.o> wrote:
4 >> There's a tracker bug for this, and the problems still remaining are:
5 >> http://bugs.gentoo.org/showdependencytree.cgi?id=129413&hide_resolved=1
6 >
7 > You've forgotten "make --as-needed not break correct code by making the
8 > linker ignore explicit instructions from a program author to link two
9 > things together". Until you do that, --as-needed is in the same
10 > category as -ffast-math.
11 >
12
13 And we can't be held hostage by few packages (marginal cases), that's
14 why we have function called $(no-as-needed) in flag-o-matic.eclass to
15 disable the behavior for these packages.
16
17 I.e. your point is moot.
18
19 - Samuli

Replies

Subject Author
Re: [gentoo-dev] Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>