This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building GCC with the -g option
- From: Ian Lance Taylor <iant at google dot com>
- To: Amittai Aviram <amittai dot aviram at yale dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 11 Feb 2012 21:51:03 -0800
- Subject: Re: Building GCC with the -g option
- References: <143D4BAE-6E4F-4CD6-A8B8-33B1C00F0048@yale.edu>
Amittai Aviram <amittai.aviram@yale.edu> writes:
> Suppose I wish to build GCC with debug information. Where and how should I add the "-g" option? Should I add this to some file before running configure, or after? Thanks!
If you build gcc, it will normally be built with -g.
If you want to build without -O2, set BOOT_CFLAGS as described in the
installation instructions http://gcc.gnu.org/install .
Ian