This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch for libstdc++-v3/mkcheck.in, don't assume gcc exists
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch for libstdc++-v3/mkcheck.in, don't assume gcc exists
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 10 May 2001 16:16:27 -0400 (EDT)
- Cc: libstdc++ at gcc dot gnu dot org
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