Actually, I have another question: if I'm not bootstrapping, what should I use? It seems that I should replace BOOT_CFLAGS with STAGE1_CFLAGS, but I have no idea about the other variables. Thanks, Gordon Magnusson On Wed, Dec 17, 2008 at 10:07 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > "Gordon Magnusson" <gordon.magnusson@xxxxxxxxx> 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@xxxxxxxxxxx is for the development of gcc. Questions > about using and building gcc should normally go to > gcc-help@xxxxxxxxxxxx > > Ian >