This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

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?


2001-05-09  Kaveh R. Ghazi  <>

	* Don't assume gcc is installed already when compiling

diff -rup orig/egcs-CVS20010508/libstdc++-v3/ egcs-CVS20010508/libstdc++-v3/
--- orig/egcs-CVS20010508/libstdc++-v3/	Sat Mar 31 15:15:41 2001
+++ egcs-CVS20010508/libstdc++-v3/	Wed May  9 11:22:25 2001
@@ -126,7 +126,7 @@ fi
 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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]