This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: How to pass CFLAGS to gcc when building gcc?
- To: hjl at lucon dot org
- Subject: Re: How to pass CFLAGS to gcc when building gcc?
- From: DJ Delorie <dj at redhat dot com>
- Date: Wed, 27 Jun 2001 20:53:27 -0400
- CC: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <20010626185933.A28514@lucon.org> <200106271854.OAA16029@greed.delorie.com> <20010627165854.A16865@lucon.org>
Approved. Thanks!
> H.J.
> ----
> 2001-06-27 H.J. Lu (hjl@gnu.org)
>
> * Makefile (CFLAGS_FOR_BUILD): New.
> (EXTRA_GCC_FLAGS): Add CFLAGS_FOR_BUILD.
>
> * gcc/build-make (CC): Removed.
> (HOST_CC): Set to $(CC_FOR_BUILD).
> (HOST_CFLAGS): Replace $(CFLAGS) with $(CFLAGS_FOR_BUILD).
> Fix a typo in comments.
>
> * gcc/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.
> * gcc/configure: Regenerated.