Gentoo Archives: gentoo-dev

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
Date: Tue, 27 Jul 2010 17:40:48
Message-Id: 4C4F1A8B.9090209@gentoo.org
In Reply to: Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff) by "Róbert Čerňanský"
On 07/27/2010 08:37 PM, Róbert Čerňanský wrote:
> On Mon, 26 Jul 2010 21:38:05 -0600 > Ryan Hill <dirtyepic@g.o> wrote: > >> it is recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to > > Is it not a comma required between ${LDFLAGS} and <your flags>? > > LDFLAGS="${LDFLAGS},<your flags>" > > Robert
Don't do that. Quoting from http://www.gentoo.org/proj/en/qa/asneeded.xml: "Note: If you use more than one -Wl flag, you have to set -Wl,--as-needed separately in LDFLAGS due to libtool deplib reordering[1]." [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/ELT-patches/as-needed/2.2.6?view=log Just use: LDFLAGS="${LDFLAGS} -Wl,--hash-style=gnu"