2008-07-10 05:47:28 Ryan Hill napisał(a):
> On Wed, 9 Jul 2008 21:15:32 +0200
> Arfrever Frehtes Taifersar Arahesis <[EMAIL PROTECTED]> wrote:
> 
> > 2008-07-09 15:45:15 Doug Goldstein napisał(a):
> > > Luca Barbato wrote:
> > > > Fabian Groffen wrote:
> > > >> On 30-06-2008 17:35:08 +0200, Arfrever Frehtes Taifersar
> > > >> Arahesis wrote:
> > > >>>> How can you easily revert it in a profile?
> > > >>> You can set LDFLAGS="" in a subprofiles's make.defaults.
> > > >>
> > > >> How elegant... but I guess I'll have no choice.
> > > >
> > > > Shouldn't possible have a subprofile with compiler/linker
> > > > specifics and move there non sharable stuff and keep base leaner?
> > > >
> > > > lu
> > > >
> > > I'm just going to commit this to default/linux in about 20 minutes
> > > -Wl,-O1
> > 
> > Cardoe informed me that he planned to add --hash-style=gnu and
> > --sort-common to default LDFLAGS in the future.
> > 
> > Does anybody know any packages / architectures (except mips) which
> > have any problems with these flags?
> 
> We have versions of glibc pre-2.5 that don't have support
> for .gnu.hash.  Can we set a minimum version in the profiles?

Yes.

You can also add the following code to profiles/default/linux/profile.bashrc
or profiles/base/profile.bashrc:

if has_version "<sys-libs/glibc-2.5" ; then
        LDFLAGS="${LDFLAGS//-Wl,--hash-style=gnu/}"
fi

-- 
Arfrever Frehtes Taifersar Arahesis

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to