1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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)