This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix bootstrap on -m32 ppc64 -> ppc64
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Date: Tue, 10 Jan 2006 18:23:36 +0100 (CET)
- Subject: [PATCH] Fix bootstrap on -m32 ppc64 -> ppc64
This fixes bootstrap on a ppc64 host to powerpc64 target with a host
compiler defaulting to -m32, thanks to toplevel bootstrap.
Richard.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 109534)
+++ Makefile.in (working copy)
@@ -813,7 +813,11 @@ ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) $
# Build and host support libraries.
LIBIBERTY = ../libiberty/libiberty.a
+ifeq ($(CC), $(CC_FOR_BUILD))
+BUILD_LIBIBERTY = $(LIBIBERTY)
+else
BUILD_LIBIBERTY = $(build_objdir)/libiberty/libiberty.a
+endif
# Dependencies on the intl and portability libraries.
LIBDEPS= $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBDECNUMBER)