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
On 06/28/2010 10:35 AM, Ciaran McCreesh wrote:
> On Mon, 28 Jun 2010 06:39:44 +0530 > Nirbheek Chauhan <nirbheek@g.o> wrote: >> There's a tracker bug for this, and the problems still remaining are: >> http://bugs.gentoo.org/showdependencytree.cgi?id=129413&hide_resolved=1 > > You've forgotten "make --as-needed not break correct code by making the > linker ignore explicit instructions from a program author to link two > things together". Until you do that, --as-needed is in the same > category as -ffast-math. >
And we can't be held hostage by few packages (marginal cases), that's why we have function called $(no-as-needed) in flag-o-matic.eclass to disable the behavior for these packages. I.e. your point is moot. - Samuli

Replies

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