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 the -g option


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


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