gnu ld version check in libstdc++-v3/acinclude.m4
Richard Guenther
rguenther@suse.de
Tue Feb 20 14:37:00 GMT 2007
On Tue, 20 Feb 2007, Daniel Jacobowitz wrote:
> 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
Hm, no idea.
>
>
> > ! 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 \?.
Indeed. I also replaced \? with \{0,1\} as Paolo noticed. Spinning
a rebuild against old/new binutils now.
Richard.
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs
More information about the Gcc-patches
mailing list