PATCH: PR bootstrap/35752: Combined gcc + binutils source tree doesn't bootstrap
Paolo Bonzini
bonzini@gnu.org
Tue Apr 1 12:36:00 GMT 2008
Can you test instead this patch (also at
http://gcc.gnu.org/bugzilla/attachment.cgi?id=15402&action=view on
bugzilla) please?
Index: configure.ac
===================================================================
--- configure.ac (revision 133636)
+++ configure.ac (working copy)
@@ -1817,6 +1817,14 @@ esac
# Assembler & linker features
# ---------------------------
+# We need to know how libtool works, or exec-tool will fail
+m4_define([_LT_DECL], [])
+_LT_CHECK_OBJDIR
+_LT_LINKER_HARDCODE_LIBPATH
+lt_objdir=$lt_cv_objdir
+AC_SUBST(lt_objdir)
+AC_SUBST(enable_fast_install)
+
# Identify the assembler which will work hand-in-glove with the newly
# built GCC, so that we can examine its features. This is the assembler
# which will be driven by the driver program.
Index: acinclude.m4
===================================================================
--- acinclude.m4 (revision 133636)
+++ acinclude.m4 (working copy)
@@ -482,3 +482,5 @@ dnl Make sure that build_exeext is looke
AC_DEFUN([gcc_AC_BUILD_EXEEXT], [
ac_executable_extensions="$build_exeext"])
+m4_include([../ltsugar.m4])
+m4_include([../libtool.m4])
Index: exec-tool.in
===================================================================
--- exec-tool.in (revision 133636)
+++ exec-tool.in (working copy)
@@ -23,6 +23,8 @@ ORIGINAL_AS_FOR_TARGET="@ORIGINAL_AS_FOR
ORIGINAL_LD_FOR_TARGET="@ORIGINAL_LD_FOR_TARGET@"
ORIGINAL_NM_FOR_TARGET="@ORIGINAL_NM_FOR_TARGET@"
exeext=@host_exeext@
+fast_install=@enable_fast_install@
+lt_objdir=@lt_objdir@
invoked=`basename "$0"`
case "$invoked" in
@@ -49,7 +51,13 @@ case "$original" in
tdir=`dirname "$0"`
scriptdir=`cd "$tdir" && pwd`
- if test -x $scriptdir/../$dir/$prog; then
+ if test "$fast_install" = yes; then
+ lt_prog=$scriptdir/../$dir/$lt_objdir/lt-$prog
+ else
+ lt_prog=$scriptdir/../$dir/$prog
+ fi
+
+ if test -x $lt_prog; then
exec $scriptdir/../$dir/$prog ${1+"$@"}
else
exec $scriptdir/../prev-$dir/$prog ${1+"$@"}
More information about the Gcc-patches
mailing list