aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-06-09 19:22:36 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1997-06-09 19:22:36 -0400
commit7fa10b250af37006afcb968344560d98a2e62d53 (patch)
tree6e94f8fbb6fc78d33820ae0a08e9dda54c0d8dc1
parent6920c3913fcbb7d12b7f087120802fcdb3877dd5 (diff)
downloadgcc-7fa10b250af37006afcb968344560d98a2e62d53.zip
gcc-7fa10b250af37006afcb968344560d98a2e62d53.tar.gz
gcc-7fa10b250af37006afcb968344560d98a2e62d53.tar.bz2
(cross_overrides, build_overrides): Use absolute path to GCC top-level
source directory. From-SVN: r14205
-rw-r--r--gcc/configure.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/configure.in b/gcc/configure.in
index f5d67f0..900c481 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -2601,6 +2601,12 @@ do
fi
done
+# Get an absolute path to the GCC top-level source directory
+holddir=`pwd`
+cd $srcdir
+topdir=`pwd`
+cd $holddir
+
# These (without "all_") are set in each config-lang.in.
# `language' must be a single word so is spelled singularly.
all_languages=
@@ -2870,7 +2876,7 @@ do
if [[ x$host != x$target ]]
then
cross_defines="CROSS=-DCROSS_COMPILE"
- cross_overrides="./cross-make"
+ cross_overrides="${topdir}/cross-make"
fi
# When building gcc with a cross-compiler, we need to fix a few things.
@@ -2878,7 +2884,7 @@ do
# all.cross.
if [[ x$build != x$host ]]
then
- build_overrides="./build-make"
+ build_overrides="${topdir}/build-make"
fi
cd $STARTDIR