This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[4.1, libstdc++] ld version detection
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Cc: Richard Guenther <rguenther at suse dot de>
- Date: Mon, 23 Apr 2007 13:57:53 +0200
- Subject: [4.1, libstdc++] ld version detection
The following patch was applied on the trunk and the 4.2 branch, but
skipped on the 4.1 branch. Needed to get the version extraction right
with recent binutils from CVS. Checked in as obvious.
Matthias
2007-04-23 Matthias Klose <doko@debian.org>
Backport from mainline:
2007-02-27 Richard Guenther <rguenther@suse.de>
* acinclude.m4: Adjust regular expression for ld version extraction.
* configure: Regenerate.
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 124063)
+++ acinclude.m4 (working copy)
@@ -225,7 +225,7 @@
if test x"$with_gnu_ld" = x"yes"; then
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([,])
glibcxx_gnu_ld_version=`echo $ldver | \
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`