This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gnu ld version check in libstdc++-v3/acinclude.m4
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 18 Mar 2007 12:17:58 +0100
- Subject: Re: gnu ld version check in libstdc++-v3/acinclude.m4
- References: <Pine.LNX.4.64.0702201326390.18923@zhemvz.fhfr.qr> <Pine.LNX.4.64.0702201331040.7148@digraph.polyomino.org.uk> <Pine.LNX.4.64.0702201443470.18923@zhemvz.fhfr.qr> <Pine.LNX.4.64.0702201638350.18923@zhemvz.fhfr.qr>
Richard Guenther <rguenther@suse.de> writes:
> 2007-02-20 Richard Guenther <rguenther@suse.de>
>
> * acinclude.m4: Adjust regular expression for ld version extraction.
> * configure: Regenerate.
libgomp uses the same broken method. Installed as obvious.
Andreas.
2007-03-18 Andreas Schwab <schwab@suse.de>
* acinclude.m4: Adjust regular expression for ld version
extraction.
* configure: Regenerate.
Index: libgomp/acinclude.m4
===================================================================
--- libgomp/acinclude.m4 (revision 122984)
+++ libgomp/acinclude.m4 (working copy)
@@ -148,7 +148,7 @@ AC_DEFUN([LIBGOMP_CHECK_LINKER_FEATURES]
# does some of this, but throws away the result.
changequote(,)
ldver=`$LD --version 2>/dev/null | head -1 | \
- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
+ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
changequote([,])
libgomp_gnu_ld_version=`echo $ldver | \
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
Index: libgomp/configure
===================================================================
--- libgomp/configure (revision 122984)
+++ libgomp/configure (working copy)
@@ -9438,7 +9438,7 @@ _ACEOF
# does some of this, but throws away the result.
ldver=`$LD --version 2>/dev/null | head -1 | \
- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
+ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
libgomp_gnu_ld_version=`echo $ldver | \
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."