A patch for configure
H . J . Lu
hjl@valinux.com
Thu May 18 09:26:00 GMT 2000
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.
More information about the Binutils
mailing list