Commit d920e825 by H.J. Lu Committed by H.J. Lu

Add CFLAGS_FOR_BUILD for canadian cross build.

From-SVN: r43628
parent 09482e0d
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.
......
......@@ -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=/`" \
......
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.
......
# 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)
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment