[4.1, libstdc++] ld version detection

Matthias Klose doko@cs.tu-berlin.de
Mon Apr 23 12:22:00 GMT 2007


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 }'`



More information about the Gcc-patches mailing list