Skip to content
Snippets Groups Projects
Commit ae18d1c5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 75194373
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment