Patch for libstdc++-v3/mkcheck.in, don't assume gcc exists

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Thu May 10 13:16:00 GMT 2001


While doing a "make check" on solaris2.7, I noticed the following
error from libstdc++-v3:

 > running mkcheck
 > mkcheck: testing the build directory
 > making file ./20010509-mkcheckfiles.txt
 > making utility ./printnow.exe
 > mkcheck: gcc: command not found
 > /usr/ccs/bin/sparcv9/strip: ./printnow.exe: cannot open file.
 >  No such file or directory

The mkcheck script assumes gcc is installed and in the user's PATH.
This patch changes it to use the gcc just built instead.  I'm not sure
if it should use ${CC} or ${CC-gcc}, comments on that are welcome.

Ok to install on the main and branch?

		Thanks,
		--Kaveh


2001-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* mkcheck.in: Don't assume gcc is installed already when compiling
	printnow.c.

diff -rup orig/egcs-CVS20010508/libstdc++-v3/mkcheck.in egcs-CVS20010508/libstdc++-v3/mkcheck.in
--- orig/egcs-CVS20010508/libstdc++-v3/mkcheck.in	Sat Mar 31 15:15:41 2001
+++ egcs-CVS20010508/libstdc++-v3/mkcheck.in	Wed May  9 11:22:25 2001
@@ -126,7 +126,7 @@ fi
 TIMER_COMMAND=$TEST_DIR/printnow.exe
 if [ ! -x "$TIMER_COMMAND" ]; then
     echo "making utility $TIMER_COMMAND"
-    gcc -o "$TIMER_COMMAND" "$SRC_DIR/testsuite/printnow.c"
+    ${CC-gcc} -o "$TIMER_COMMAND" "$SRC_DIR/testsuite/printnow.c"
     strip "$TIMER_COMMAND"
 fi
 



More information about the Gcc-patches mailing list