This is the mail archive of the gcc@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]
Other format: [Raw text]

Are BOOT_CFLAGS, CFLAGS_FOR_TARGET, and CXXFLAGS_FOR_TARGET necessary and sufficient?


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?

Thanks,
Gordon Magnusson


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