Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Fabian Groffen <grobian@g.o>
Subject: Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Mon, 30 Jun 2008 10:57:21 +0200
On 29-06-2008 20:28:39 -0700, Donnie Berkholz wrote:
> On 23:15 Sun 29 Jun     , Fabian Groffen wrote:
> > On 29-06-2008 07:29:57 -0400, Mike Frysinger wrote:
> > > On Saturday 28 June 2008, Petteri Räty wrote:
> > > > Arfrever Frehtes Taifersar Arahesis kirjoitti:
> > > > > I would like to suggest that default LDFLAGS in Gentoo contain the
> > > > > following flags: "-Wl,-O1,--hash-style=gnu,--sort-common".
> > > > >
> > > > > -O1 enables some basic optimizations.
> > > >
> > > > At least adding -O1 should not be problematic. I think vapier was
> > > > already suggesting this quite a while ago.
> > > 
> > > imo -Wl,-O1 should go into base
> > 
> > I prefer not.  Please only on profiles that use GNU binutils as linker.
> 
> That's the rule, not the exception, so I think that profiles with 
> non-gnu linkers should revert it.

In the current world of gentoo-x86 it is the rule.  But what will you do
once Sun Studio becomes open source, and you want to allow people that
like to have better performance to use it?  What if Gentoo Prefix ever
gets merged back into gentoo-x86?

How can you easily revert it in a profile?  Using strip-ldflags alike?
That feels nasty to me.  If it is trivial to remove it again,
considering there may be more in LDFLAGS, then it is less of a problem
to me.  Maybe there is such a way, and I just missed it.


-- 
Fabian Groffen
Gentoo on a different level
-- 
gentoo-dev@g.o mailing list


Replies:
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Arfrever Frehtes Taifersar Arahesis
References:
Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Arfrever Frehtes Taifersar Arahesis
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Petteri Räty
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Mike Frysinger
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Fabian Groffen
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
-- Donnie Berkholz
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Next by thread:
Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Previous by date:
Re: Re: Re: Multislot dependencies
Next by date:
Last rites: mail-client/claws-mail-pdf-viewer


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.