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: Building GCC with -g3


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


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