diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-09 21:55:04 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-09 21:55:04 +0000 |
commit | 5ec88efd8236e258640bc1dd8911cfff18c41fc2 (patch) | |
tree | 8604541660b24270fa5fe430fa1f786692751e9d | |
parent | 322dce453ac05ed5da517eb09acef12196f87ecc (diff) | |
download | gcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.zip gcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.tar.gz gcc-5ec88efd8236e258640bc1dd8911cfff18c41fc2.tar.bz2 |
When finding SIZE_TYPE, cd to ${LIB} to run cc.
From-SVN: r4400
-rwxr-xr-x | gcc/fixincludes | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 4773729..254bd64 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 |