Disabling debug when building gcc
Ian Lance Taylor
iant@google.com
Tue Jul 26 00:32:00 GMT 2011
lol37 lol37 <lol37cs16@gmail.com> writes:
> How to disable completely -g flag when building gcc, i passed
> CFLAGS="-O2" and edited Makefile but all subdirectory ( libgcc,
> libstdc++v3, libgomp ... ) still uses the -g flags and i cannot edit
> their Makefile, they are creating while building ( configure )
Use BOOT_CFLAGS to set the flags you want to use when building gcc
itself.
make BOOT_CFLAGS="-O2"
Ian
More information about the Gcc-help
mailing list