Re: debug builds with NO optimizations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andreas Schwab wrote:
"John Calcote" <jcalcote@xxxxxxxxxx> writes:

My question: Anyone know of a good idiom for managing optimization flags -
including disabling the obligatory -O2 placed in CFLAGS by AC_PROG_CC?

.../configure CFLAGS=-g

That may be a clean approach, but running configure is slow enough as it is; re-running it for trivial changes is really aggravating.

If you want to memorialize the change (instead of just relying on overriding the setting at make invocation) the other obvious choice is to edit the config.status script and re-run that to propagate the changes to the Makefiles.
--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux