aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-15 14:11:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-15 14:11:20 +0000
commitae18d1c55a71dff3ab06bf3a049dee65090ef00e (patch)
tree390eaf2f2b4d7c0f89c1e384095cf1ce8e597c68 /configure.in
parent75194373e0ed5856821dbcd06bcadeff44925331 (diff)
attempts to filter off optimize flags when --enable-debug is used
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d7e5e810b..829cd72a0 100644
--- a/configure.in
+++ b/configure.in
@@ -758,6 +758,8 @@ AC_ARG_ENABLE(debug,
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs"
fi
+ dnl strip off optimizer flags
+ CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9 ]//g'`
;;
esac ],
AC_MSG_RESULT(no)