From ae18d1c55a71dff3ab06bf3a049dee65090ef00e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 15 Nov 2002 14:11:20 +0000 Subject: [PATCH] attempts to filter off optimize flags when --enable-debug is used --- configure.in | 2 ++ 1 file changed, 2 insertions(+) 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)