This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gnu ld version check in libstdc++-v3/acinclude.m4
- From: Daniel Jacobowitz <drow at false dot org>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Tue, 20 Feb 2007 08:18:17 -0500
- Subject: Re: gnu ld version check in libstdc++-v3/acinclude.m4
- References: <Pine.LNX.4.64.0702201326390.18923@zhemvz.fhfr.qr>
On Tue, Feb 20, 2007 at 01:33:09PM +0100, Richard Guenther wrote:
>
> It looks like binutils recently changed the formatting of it's version
> string with introducing --with-pkgversion. This causes the configure
> check for symbol versioning to fail for libstdc++.
>
> In particular we now have
>
> > ld --version
> GNU ld version (SUSE Linux) 2.17.50.20070219 20070219
That looks wrong... I think Andreas Schwab observed something similar
on binutils@ today. How did the date get doubled? Or is that a SuSE
local change? It doesn't seem to happen for me.
GNU assembler 2.17.50 20070220
> ! sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
> ! sed -e 's/GNU ld version \(([^(]*)\)\? \?\([0-9.][0-9.]*\).*/\2/'`
I guess you meant [^)], not [^(]. I think it's clearer if you move
the space inside the parentheses, too, so you only need one \?.
--
Daniel Jacobowitz
CodeSourcery