[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS
From: |
Glenn Morris |
Subject: |
bug#6538: Removal of C_DEBUG_SWITCH changes CFLAGS |
Date: |
Wed, 30 Jun 2010 02:37:14 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Dan Nicolaescu wrote:
> C_DEBUG_SWITCH was weird, it used to specify optimization flags too,
> that's probably why C_OPTIMIZE_SWITCH is unused.
Yes, it was all very weird...
> C_DEBUG_SWITCH was just -g -O for all platforms that bothered to set it.
What about irix6-5: "-g3 -O -OPT:Olimit=3500".
> We get that anyway for non-GCC compilers.
I noticed that AC_PROG_CC tests for -g, and adds it to CFLAGS if
supported. It also adds -O2 when using gcc. Perhaps this could be used
to further simplify configure.in...