[Newb] Building with debug info and no optimization

Ian Lance Taylor ian@wasabisystems.com
Sat Mar 20 04:29:00 GMT 2004


sashan <sashang@ihug.co.nz> writes:

> I'm trying to build gcc with debug info only so I do this at the
> command prompt
> 
> export CFLAGS=-g
> 
> I re-run configure to build the make file:
> gcc_current_build $ ../gcc_current/configure --program-suffix=-current
> gcc_current_build $ make

There is probably some way to make that approach work.  However, the
easy way is to not set CFLAGS in the environment at all, and instead
do
    make CFLAGS=-g

Ian



More information about the Gcc mailing list