Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Thu, 10 Jul 2008 22:17:07
Message-Id: 200807110014.28795.Arfrever.FTA@gmail.com
In Reply to: [gentoo-dev] Re: Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common" by Ryan Hill
1 2008-07-10 05:47:28 Ryan Hill napisał(a):
2 > On Wed, 9 Jul 2008 21:15:32 +0200
3 > Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> wrote:
4 >
5 > > 2008-07-09 15:45:15 Doug Goldstein napisał(a):
6 > > > Luca Barbato wrote:
7 > > > > Fabian Groffen wrote:
8 > > > >> On 30-06-2008 17:35:08 +0200, Arfrever Frehtes Taifersar
9 > > > >> Arahesis wrote:
10 > > > >>>> How can you easily revert it in a profile?
11 > > > >>> You can set LDFLAGS="" in a subprofiles's make.defaults.
12 > > > >>
13 > > > >> How elegant... but I guess I'll have no choice.
14 > > > >
15 > > > > Shouldn't possible have a subprofile with compiler/linker
16 > > > > specifics and move there non sharable stuff and keep base leaner?
17 > > > >
18 > > > > lu
19 > > > >
20 > > > I'm just going to commit this to default/linux in about 20 minutes
21 > > > -Wl,-O1
22 > >
23 > > Cardoe informed me that he planned to add --hash-style=gnu and
24 > > --sort-common to default LDFLAGS in the future.
25 > >
26 > > Does anybody know any packages / architectures (except mips) which
27 > > have any problems with these flags?
28 >
29 > We have versions of glibc pre-2.5 that don't have support
30 > for .gnu.hash. Can we set a minimum version in the profiles?
31
32 Yes.
33
34 You can also add the following code to profiles/default/linux/profile.bashrc
35 or profiles/base/profile.bashrc:
36
37 if has_version "<sys-libs/glibc-2.5" ; then
38         LDFLAGS="${LDFLAGS//-Wl,--hash-style=gnu/}"
39 fi
40
41 --
42 Arfrever Frehtes Taifersar Arahesis

Attachments

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