PATCH: Fix AR_FOR_TARGET/RANLIB_FOR_TARGET passing in 3.3
Mark Mitchell
mark@codesourcery.com
Sun Aug 3 15:32:00 GMT 2003
On the 3.3 branch, AR_FOR_TARGET and RANLIB_FOR_TARGET are not passed
down in a couple of spaces, which (I found when bootstrapping on
hppa64-hp-hpux11.11) prevents bootstrapping. That's a major
regression; fixed thus.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
2003-08-03 Mark Mitchell <mark@codesourcery.com>
* Makefile.in (STAGE2_FLAGS_TO_PASS): Pass AR_FOR_TARGET and
RANLIB_FOR_TARGET.
(stage1_build): Likewise.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.958.2.12
diff -c -5 -p -r1.958.2.12 Makefile.in
*** Makefile.in 4 Jul 2003 19:53:45 -0000 1.958.2.12
--- Makefile.in 3 Aug 2003 15:31:12 -0000
*************** VOL_FILES=`echo $(BACKEND) $(OBJS) $(C_O
*** 3315,3324 ****
--- 3315,3326 ----
# Flags to pass to stage2 and later recursive makes. Note that the
# WARN_CFLAGS setting can't be to the expansion of GCC_WARN_CFLAGS in
# the context of the stage_x rule.
STAGE2_FLAGS_TO_PASS = \
ADAC="\$$(CC)" \
+ AR_FOR_TARGET="$(AR_FOR_TARGET)" \
+ RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
CFLAGS="$(BOOT_CFLAGS)" \
LDFLAGS="$(BOOT_LDFLAGS)" \
WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
STRICT_WARN="$(STRICT2_WARN)" \
libdir=$(libdir) \
*************** STAGE2_FLAGS_TO_PASS = \
*** 3330,3340 ****
# we can guarantee will build with the native compiler, and also it is the
# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
# overrideable (for a bootstrap build stage1 also builds gcc.info).
stage1_build:
! $(MAKE) CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \
MAKEINFOFLAGS="$(MAKEINFOFLAGS)" COVERAGE_FLAGS=
$(STAMP) stage1_build
echo stage1_build > stage_last
--- 3332,3344 ----
# we can guarantee will build with the native compiler, and also it is the
# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
# overrideable (for a bootstrap build stage1 also builds gcc.info).
stage1_build:
! $(MAKE) AR_FOR_TARGET="$(AR_FOR_TARGET)" \
! RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
! CC="$(CC)" libdir=$(libdir) LANGUAGES="$(BOOT_LANGUAGES)" \
CFLAGS="$(STAGE1_CFLAGS)" MAKEINFO="$(MAKEINFO)" \
MAKEINFOFLAGS="$(MAKEINFOFLAGS)" COVERAGE_FLAGS=
$(STAMP) stage1_build
echo stage1_build > stage_last
More information about the Gcc-patches
mailing list