remove optimization-inhibiting behavior from configure's --enable-debug
authorRich Felker <dalias@aerifal.cx>
Fri, 20 Jun 2014 20:10:48 +0000 (16:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 20 Jun 2014 20:10:48 +0000 (16:10 -0400)
this behavior turned out to be counter-intuitive to users and in any
case it's unnecessary. optimization can be disabled explicitly using
the --disable-optimize option, or both can be achieved without any
enable/disable options by passing CFLAGS="-O0 -g".

configure

index 0cff13d..b1cf998 100755 (executable)
--- a/configure
+++ b/configure
@@ -298,12 +298,9 @@ fi
 tryflag CFLAGS_MEMOPS -fno-tree-loop-distribute-patterns
 
 #
-# If debugging is explicitly enabled, don't auto-enable optimizations
+# Enable debugging if requessted.
 #
-if test "$debug" = yes ; then
-CFLAGS_AUTO=-g
-test "$optimize" = auto && optimize=no
-fi
+test "$debug" = yes && CFLAGS_AUTO=-g
 
 #
 # Possibly add a -O option to CFLAGS and select modules to optimize with