This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] gcc/Makefile.in gcc-3_0-branch, pass CFLAGS to stage1_build


>> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]