This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Are BOOT_CFLAGS, CFLAGS_FOR_TARGET, and CXXFLAGS_FOR_TARGET necessary and sufficient?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Gordon Magnusson" <gordon dot magnusson at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Dec 2008 22:07:50 -0800
- Subject: Re: Are BOOT_CFLAGS, CFLAGS_FOR_TARGET, and CXXFLAGS_FOR_TARGET necessary and sufficient?
- References: <c45c73550812172111w1e330d7dt4986a1f991d835ad@mail.gmail.com>
"Gordon Magnusson" <gordon.magnusson@gmail.com> writes:
> I read http://gcc.gnu.org/install/build.html but wasn't completely enlightened.
>
> If I'm building C and C++ (i.e. configuring with
> --enable-languages=c,c++) and I want to build gcc, g++, and libstdc++
> with -O3 instead of the default (which I believe is -g -O2), is this
> correct:
>
> make "BOOT_CFLAGS=-O3" "CFLAGS_FOR_TARGET=-O3" "CXXFLAGS_FOR_TARGET=-O3"
>
> Or should I add/remove variables?
Seems right to me. What happened when you tried it?
Note that gcc@gcc.gnu.org is for the development of gcc. Questions
about using and building gcc should normally go to
gcc-help@gcc.gnu.org.
Ian