This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to pass CFLAGS to gcc when building gcc?
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.