OSDN Git Service

When finding SIZE_TYPE, cd to ${LIB} to run cc.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 May 1993 21:55:04 +0000 (21:55 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 May 1993 21:55:04 +0000 (21:55 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4400 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index 4773729..254bd64 100755 (executable)
@@ -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