This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
A patch for configure
- To: binutils at sourceware dot cygnus dot com
- Subject: A patch for configure
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Thu, 18 May 2000 09:26:42 -0700
I'd like to install this patch. Without it, cross compiling may
fail due to the way gcc uses to find binutils.
--
H.J. Lu (hjl@gnu.org)
--
20000-05-18 H.J. Lu (hjl@gnu.org)
* configure: Ask to create the gcc directory for cross
compiling if necessary.
Index: configure
===================================================================
RCS file: /work/cvs/gnu/binutils/configure,v
retrieving revision 1.1.1.6
diff -u -p -r1.1.1.6 configure
--- configure 2000/04/12 17:04:42 1.1.1.6
+++ configure 2000/05/18 16:05:57
@@ -753,6 +753,17 @@ target_vendor=`echo $result | sed 's/^\(
target_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
target=${target_cpu}-${target_vendor}-${target_os}
+if [ x${target} != x${build} -a x${build} = x${host} ]; then
+ if [ x${gcc_version} != x -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then
+ echo "Please create the directory:" 1>&2
+ echo 1>&2
+ echo " ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version}" 1>&2
+ echo 1>&2
+ echo "first for successful cross-compilaition." 1>&2
+ exit 1
+ fi
+fi
+
. ${tmpfile}.tgt
# Find the source files, if location was not specified.