This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcc/Makefile.in gcc-3_0-branch, pass CFLAGS to stage1_build
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: [PATCH] gcc/Makefile.in gcc-3_0-branch, pass CFLAGS to stage1_build
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Tue, 27 Mar 2001 15:09:51 -0500 (EST)
- Cc: Franz dot irl-kernel at lauterbach dot com, dj at redhat dot com
>> That won't work from the toplevel as STAGE1_CFLAGS currently isn't passed
>> down. Moreover Gordon's checked in patch always overrides the CFLAGS passed
>> to the stage1 with the CFLAGS passed to make, so
>> currently wouldn't even work if the toplevel Makefile passed down
>> STAGE1_CFLAGS.
>
> Without the patch, there is *no* way to specify the stage1 compile
> flags. Perhaps we should pass STAGE1_CFLAGS along to stage1_build
> then? We need to pass *something* along (and probably document it,
> too).
The currently installed patch is wrong and should be backed out. For
native builds, it is necessary to have different CFLAGS for stage1 and
subsequent stages on some hosts. The stage1 compile flags are the
default values set in the Makefile. These currently are set by configure
and not directly passed to the stage1 build. Passing STAGE1_CFLAGS
from the toplevel Makefile would apprear to provide a method to override
the defaults set by configure.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)