summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-02 10:07:58 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2008-04-02 10:07:58 +0000
commit794723c16828ffa0a7c913450704823791f54129 (patch)
tree898bb2254aaae08c8cf898c55adf2bbb800e06f5 /gcc/configure.ac
parent6d529d2799649367603ba2b99c1ac9d3753a6571 (diff)
downloadgcc-794723c16828ffa0a7c913450704823791f54129.tar.gz
2008-04-02 Paolo Bonzini <bonzini@gnu.org>
PR bootstrap/35752 * Makefile.in (objdir): Set it here. * configure.ac: Not here. Find dynamic linker characteristics. * exec-tool.in: Use them. * aclocal.m4: Regenerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac18
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 3384193f4de..61d0d100914 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1814,6 +1814,21 @@ esac
# Assembler & linker features
# ---------------------------
+# During stage 2, ld is actually gcc/collect-ld, which is a small script to
+# discern between when to use prev-ld/ld-new and when to use ld/ld-new.
+# However when ld-new is first executed from the build tree, libtool will
+# relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
+# to the build tree. While doing this we need to use the previous-stage
+# linker, or we have an infinite loop. The presence of a shell script as
+# ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
+# the gcc/collect-ld script. So we need to know how libtool works, or
+# exec-tool will fail.
+
+m4_defun([_LT_CONFIG_COMMANDS], [])
+AC_PROG_LIBTOOL
+AC_SUBST(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.
@@ -3690,9 +3705,6 @@ else
fi)
AC_SUBST(slibdir)
-objdir=`${PWDCMD-pwd}`
-AC_SUBST(objdir)
-
AC_ARG_WITH(datarootdir,
[ --with-datarootdir=DIR Use DIR as the data root [[PREFIX/share]]],
datarootdir="\${prefix}/$with_datarootdir",