summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-20 16:10:48 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-20 16:10:48 -0400
commit4ad3588c0eedba8165e377da0ff8d331aa901b94 (patch)
treea456de2c55a8421e4bb0702eadadb7c6da364691 /configure
parentfe82bb9b921be34370e6b71a1c6f062c20999ae0 (diff)
downloadmusl-4ad3588c0eedba8165e377da0ff8d331aa901b94.tar.gz
musl-4ad3588c0eedba8165e377da0ff8d331aa901b94.tar.bz2
musl-4ad3588c0eedba8165e377da0ff8d331aa901b94.tar.xz
musl-4ad3588c0eedba8165e377da0ff8d331aa901b94.zip
remove optimization-inhibiting behavior from configure's --enable-debug
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".
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure b/configure
index 0cff13d2..b1cf9980 100755
--- 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