3.1 PATCH: Fix libstdc++-v3 bootstrap failure on IRIX 6.2

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Tue May 7 08:50:00 GMT 2002


A bootstrap on mips-sgi-irix6.2 failed when configuring libstdc++:

checking for setenv declaration... no
UX:test (configure): ERROR: -n32: Unknown operator
make[1]: *** [configure-target-libstdc++-v3] Error 1

This happens because LD is set to /usr/bin/ld -n32, and /bin/sh's test
chokes on

test x/usr/bin/ld -n32 = x

from this fragment:

if test x$enable_shared = xno || 
	test x$LD = x || 
	test x$glibcpp_gnu_ld_version = x; then
  enable_symvers=no
fi

The trivial patch below fixes this by quoting this instance of $LD as is
done in any other use of $LD in libstdc++-v3/configure.  It allows the
libstdc++-v3 configure step to complete successfully; a full bootstrap is
still in progress.

This is a regression from GCC 3.0.x, which bootstrapped successfully on
mips-sgi-irix6.2.

Ok for branch and mainline if the bootstrap completes without regressions?

	Rainer


Tue May  7 17:26:51 2002  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* acinclude.m4 (enable_symvers): Quote $LD.
	* aclocal.m4: Regenerate.
	* configure: Likewise.
	
Index: libstdc++-v3/acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.194.2.8
diff -u -p -r1.194.2.8 acinclude.m4
--- libstdc++-v3/acinclude.m4	4 Apr 2002 21:35:31 -0000	1.194.2.8
+++ libstdc++-v3/acinclude.m4	7 May 2002 15:31:11 -0000
@@ -2120,7 +2120,7 @@ enable_symvers=GLIBCPP_ENABLE_SYMVERS_DE
 # If we never went through the GLIBCPP_CHECK_LINKER_FEATURES macro, then we
 # don't know enough about $LD to do tricks... 
 if test x$enable_shared = xno || 
-	test x$LD = x || 
+	test "x$LD" = x || 
 	test x$glibcpp_gnu_ld_version = x; then
   enable_symvers=no
 fi



More information about the Gcc-patches mailing list