This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
don't try to use an ar out of a combined tree on darwin
- From: gkeating at apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Aug 2004 16:02:30 -0700 (PDT)
- Subject: don't try to use an ar out of a combined tree on darwin
bfd hasn't been ported to darwin, so binutils doesn't get built in a
combined tree build; but it's still in the tree, so the test for
which ar to use needs to be finer.
Tested by bootstrapping a combined tree (well, gcc-and-binutils) on
powerpc-darwin, and by building a combined tree for ppc-darwin X
ppc-eabisim.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/gcc-combinednobfd.patch===================
2004-08-12 Geoffrey Keating <geoffk@apple.com>
* configure.ac: When testing for flex, nm, ar, and bison, check
that they will actually be built.
* configure: Regenerate.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.50
diff -u -p -u -p -r2.50 configure.ac
--- configure.ac 23 Jul 2004 06:59:34 -0000 2.50
+++ configure.ac 12 Aug 2004 23:02:00 -0000
@@ -791,7 +791,8 @@ fi
# How about lex?
dnl Don't use AC_PROG_LEX; we insist on flex.
dnl LEXLIB is not useful in gcc.
-if test x${build} = x${host} && test -f $srcdir/../flex/skel.c; then
+if test x${build} = x${host} && test -f $srcdir/../flex/skel.c \
+ && test -d ../flex ; then
FLEX='$(objdir)/../flex/flex'
else
AC_CHECK_PROG(FLEX, flex, flex, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex)
@@ -799,21 +800,24 @@ fi
# Bison?
# The -L switch is so bison can find its skeleton file.
-if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple; then
+if test x${build} = x${host} && test -f $srcdir/../bison/bison.simple \
+ && test -d ../bison ; then
BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
else
AC_CHECK_PROG(BISON, bison, bison, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison)
fi
# NM
-if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c; then
+if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
+ && test -d ../binutils ; then
NM='$(objdir)/../binutils/nm-new'
else
AC_CHECK_PROG(NM, nm, nm, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm)
fi
# AR
-if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c; then
+if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
+ && test -d ../binutils ; then
AR='$(objdir)/../binutils/ar'
else
AC_CHECK_PROG(AR, ar, ar, ${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar)
============================================================