This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building GCC with -g3
- From: Ian Lance Taylor <iant at google dot com>
- To: Amittai Aviram <amittai dot aviram dot 0 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Jun 2012 22:46:40 -0700
- Subject: Re: Building GCC with -g3
- References: <A31C3EB0-B0D1-4BC8-AE66-B9CD3C7F518A@gmail.com>
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