From: Richard Stallman Date: Sun, 9 May 1993 21:55:04 +0000 (+0000) Subject: When finding SIZE_TYPE, cd to ${LIB} to run cc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ec88efd8236e258640bc1dd8911cfff18c41fc2;p=gcc.git When finding SIZE_TYPE, cd to ${LIB} to run cc. From-SVN: r4400 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index 4773729b377..254bd64059d 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -333,7 +333,7 @@ do # (This file must be called something.c). echo "#include \"tm.h\" gobblegobble SIZE_TYPE" > ${LIB}/types.c - foo=`cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config ${LIB}/types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"` + foo=`cd ${LIB}; cc -E -I${ORIGDIR} -I${SRCDIR} -I${SRCDIR}/config types.c | grep gobblegobble | sed -e "s/gobblegobble[ ]*//"` rm -f ${LIB}/types.c # Default to our preferred type. if [ "$foo" = SIZE_TYPE ]; then foo="unsigned long int"; else foo=`echo $foo | sed -e 's/^.*"\(.*\)".*$/\1/'`; fi