attempts to filter off optimize flags when --enable-debug is used

This commit is contained in:
Daniel Stenberg 2002-11-15 14:11:20 +00:00
parent 75194373e0
commit ae18d1c55a
1 changed files with 2 additions and 0 deletions

View File

@ -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)