Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Mon, 30 Jun 2008 15:39:22
Message-Id: 200806301736.04803.Arfrever.FTA@gmail.com
In Reply to: Re: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common" by Fabian Groffen
1 2008-06-30 10:57:21 Fabian Groffen napisał(a):
2 > On 29-06-2008 20:28:39 -0700, Donnie Berkholz wrote:
3 > > On 23:15 Sun 29 Jun , Fabian Groffen wrote:
4 > > > On 29-06-2008 07:29:57 -0400, Mike Frysinger wrote:
5 > > > > On Saturday 28 June 2008, Petteri Räty wrote:
6 > > > > > Arfrever Frehtes Taifersar Arahesis kirjoitti:
7 > > > > > > I would like to suggest that default LDFLAGS in Gentoo contain the
8 > > > > > > following flags: "-Wl,-O1,--hash-style=gnu,--sort-common".
9 > > > > > >
10 > > > > > > -O1 enables some basic optimizations.
11 > > > > >
12 > > > > > At least adding -O1 should not be problematic. I think vapier was
13 > > > > > already suggesting this quite a while ago.
14 > > > >
15 > > > > imo -Wl,-O1 should go into base
16 > > >
17 > > > I prefer not. Please only on profiles that use GNU binutils as linker.
18 > >
19 > > That's the rule, not the exception, so I think that profiles with
20 > > non-gnu linkers should revert it.
21 >
22 > In the current world of gentoo-x86 it is the rule. But what will you do
23 > once Sun Studio becomes open source, and you want to allow people that
24 > like to have better performance to use it? What if Gentoo Prefix ever
25 > gets merged back into gentoo-x86?
26 >
27 > How can you easily revert it in a profile?
28
29 You can set LDFLAGS="" in a subprofiles's make.defaults.
30
31 --
32 Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies