From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-41608-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1OT9L9-00011U-Nm
	for garchives@archives.gentoo.org; Mon, 28 Jun 2010 08:05:20 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 11574E0FE9;
	Mon, 28 Jun 2010 08:05:10 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 4C290E0FCA
	for <gentoo-dev@lists.gentoo.org>; Mon, 28 Jun 2010 08:05:00 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id EE2171B40B5
	for <gentoo-dev@lists.gentoo.org>; Mon, 28 Jun 2010 08:04:59 +0000 (UTC)
X-Virus-Scanned: amavisd-new at gentoo.org
X-Spam-Score: -2.202
X-Spam-Level: 
X-Spam-Status: No, score=-2.202 required=5.5 tests=[AWL=-1.092,
	BAYES_05=-1.11]
Received: from smtp.gentoo.org ([127.0.0.1])
	by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 9QMuETrTUBQ7 for <gentoo-dev@lists.gentoo.org>;
	Mon, 28 Jun 2010 08:04:53 +0000 (UTC)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	by smtp.gentoo.org (Postfix) with ESMTP id 70B411B411C
	for <gentoo-dev@gentoo.org>; Mon, 28 Jun 2010 08:04:52 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <lnx-gentoo-dev@m.gmane.org>)
	id 1OT9Kh-0002v4-AE
	for gentoo-dev@gentoo.org; Mon, 28 Jun 2010 10:04:47 +0200
Received: from athedsl-389723.home.otenet.gr ([79.131.74.89])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-dev@gentoo.org>; Mon, 28 Jun 2010 10:04:47 +0200
Received: from realnc by athedsl-389723.home.otenet.gr with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <gentoo-dev@gentoo.org>; Mon, 28 Jun 2010 10:04:47 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: gentoo-dev@lists.gentoo.org
From: Nikos Chantziaras <realnc@arcor.de>
Subject: [gentoo-dev] Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Date: Mon, 28 Jun 2010 11:04:51 +0300
Organization: Lucas Barks
Message-ID: <i09l2m$t48$1@dough.gmane.org>
References: <AANLkTikRpyKw2cXXQ0NfvXoqbod5vVmLBLhZWDbx3Ytx@mail.gmail.com>	<20100628083559.2c810fda@snowcone>	<4C2852F6.30003@gentoo.org> <20100628085119.1631337d@snowcone>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: athedsl-389723.home.otenet.gr
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100626 Thunderbird/3.1
In-Reply-To: <20100628085119.1631337d@snowcone>
X-Archives-Salt: 88e04f98-e08c-44e6-8839-5a773ba6cd9f
X-Archives-Hash: 117cfec2bc3e621923e327034506cf28

On 06/28/2010 10:51 AM, Ciaran McCreesh wrote:
> On Mon, 28 Jun 2010 10:44:54 +0300
> Samuli Suominen<ssuominen@gentoo.org>  wrote:
>>> 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.
>
> Will Gentoo be doing the same for -Ofast and its flags then? After all,
> most packages work with them, and you can't let the few packages that
> require standard-compliant behaviour from a compiler hold Gentoo
> hostage.

--as-needed is a flag that tries to solve a specific (and very annoying) 
problem.  It deserves a bit of special treatment.  It's not a ricer flag :-)