Building GCC with -g3
Ian Lance Taylor
iant@google.com
Fri Jun 22 05:47:00 GMT 2012
Amittai Aviram <amittai.aviram.0@gmail.com> writes:
> Hi! I'm getting really tired of having GDB say "value optimized out" when I am trying to debug GCC library (libgomp) code. What file do I change, and how, so that libgomp will get built with CFLAGS including -g3? Or, if I just enter
>
> export CFLAGS=-g3
> make -j
> make -j install
>
> Will that cause -g3 to override the default -g switch? Thanks!
make -j CFLAGS_FOR_TARGET=-g3
Ian
More information about the Gcc-help
mailing list