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 ) id 1OT9NT-0001Ej-Lp for garchives@archives.gentoo.org; Mon, 28 Jun 2010 08:07:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6E01E0FAB; Mon, 28 Jun 2010 08:07:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2ED46E0A07 for ; Mon, 28 Jun 2010 08:07:32 +0000 (UTC) Received: from [83.146.207.236] (dyn-207-236-dsl.vsp.fi [83.146.207.236]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPSA id 617251B4009 for ; Mon, 28 Jun 2010 08:07:31 +0000 (UTC) Message-ID: <4C285876.4020208@gentoo.org> Date: Mon, 28 Jun 2010 11:08:22 +0300 From: Samuli Suominen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.4) Gecko/20100626 Thunderbird/3.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults References: <20100628083559.2c810fda@snowcone> <4C2852F6.30003@gentoo.org> <20100628085119.1631337d@snowcone> In-Reply-To: <20100628085119.1631337d@snowcone> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 7f9887ff-f787-42a7-91de-88d4c99fe3e7 X-Archives-Hash: 70078631b0f0134f840cf8bdf5fc4901 On 06/28/2010 10:51 AM, Ciaran McCreesh wrote: > On Mon, 28 Jun 2010 10:44:54 +0300 > Samuli Suominen 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. > This is not about optimizing but preventing clear breakage, the benefits of asneeded are not under debate here (like already stated in the original message this thread started from) So please stop trying to derail the thread - Samuli