Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Nikos Chantziaras <realnc@...>
Subject: Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Date: Mon, 28 Jun 2010 11:04:51 +0300
On 06/28/2010 10:51 AM, Ciaran McCreesh wrote:
> On Mon, 28 Jun 2010 10:44:54 +0300
> Samuli Suominen<ssuominen@g.o>  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 :-)



References:
Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
-- Nirbheek Chauhan
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
-- Ciaran McCreesh
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
-- Samuli Suominen
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
-- Ciaran McCreesh
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Next by thread:
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Previous by date:
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults
Next by date:
Re: Adding --as-needed to LDFLAGS in profiles/default/linux/make.defaults


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.