Add CFLAGS_FOR_BUILD for canadian cross build.

From-SVN: r43628
This commit is contained in:
H.J. Lu 2001-06-28 04:38:51 +00:00 committed by H.J. Lu
parent 09482e0de5
commit d920e82592
6 changed files with 326 additions and 314 deletions

View File

@ -1,3 +1,8 @@
2001-06-27 H.J. Lu (hjl@gnu.org)
* Makefile (CFLAGS_FOR_BUILD): New.
(EXTRA_GCC_FLAGS): Add CFLAGS_FOR_BUILD.
2001-06-13 Joseph S. Myers <jsm28@cam.ac.uk>
* README: Remove version number.

View File

@ -87,6 +87,7 @@ CXXFLAGS = -g -O2
LDFLAGS =
LIBCFLAGS = $(CFLAGS)
CFLAGS_FOR_BUILD = $(CFLAGS)
CFLAGS_FOR_TARGET = $(CFLAGS)
LDFLAGS_FOR_TARGET =
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
@ -473,6 +474,7 @@ EXTRA_GCC_FLAGS = \
"`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
'WINDRES=$$(WINDRES_FOR_TARGET)' \
"GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
"`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
"`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
"`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \

View File

@ -1,3 +1,16 @@
2001-06-27 H.J. Lu (hjl@gnu.org)
* build-make (CC): Removed.
(HOST_CC): Set to $(CC_FOR_BUILD).
(HOST_CFLAGS): Replace $(CFLAGS) with $(CFLAGS_FOR_BUILD).
Fix a typo in comments.
* configure.in: Set CFLAGS to $(CFLAGS_FOR_BUILD) when
generating auto-build.h for canadian cross compile. Set CC
to `"${CC_FOR_BUILD}"' instead of just `${CC_FOR_BUILD}'.
Save/restore CFLAGS.
* configure: Regenerated.
2001-06-27 Jim Wilson <wilson@redhat.com>
* emit-rtl.c (gen_highpart): Call validize_mem.

View File

@ -1,18 +1,15 @@
# We have to use the cross-compiler we just built to compile it.
CC = gcc -b $(host)
# Need those to compile binaries running on host machine.
# It is configured by
#
# configure --host=target_cpu-target_os \
# --target=host=target_cpu-target_os --build=host_cpu-host_os
# --target=target_cpu-target_os --build=host_cpu-host_os
#
# That HOST stuff has to be taken care of very carefully.
HOST_PREFIX=l-
HOST_PREFIX_1=$(HOST_PREFIX)
HOST_CC=$(CC) -b $(build)
HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) \
-DGENERATOR_FILE
HOST_CC=$(CC_FOR_BUILD)
HOST_CFLAGS=$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) \
$(XCFLAGS) -DGENERATOR_FILE
HOST_LDFLAGS=$(LDFLAGS)
HOST_CPPFLAGS=$(ALL_CPPFLAGS)
HOST_MALLOC=$(MALLOC)

604
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -844,8 +844,11 @@ else
/* | [A-Za-z]:[\\/]* ) realsrcdir=${srcdir};;
*) realsrcdir=../${srcdir};;
esac
CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
${realsrcdir}/configure \
--target=$target --host=$build --build=$build
CFLAGS="${saved_CFLAGS}"
# We just finished tests for the build machine, so rename
# the file auto-build.h in the gcc directory.