This is the mail archive of the gcc-help@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]

Re: Disabling debug when building gcc


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


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