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

--enable-debug now checks if gcc is used before it sets all those gcc-

specific options. This should make this option work on more platforms with
other compilers.
parent 9e612b55
No related branches found
No related tags found
No related merge requests found
......@@ -743,7 +743,10 @@ AC_ARG_ENABLE(debug,
*) AC_MSG_RESULT(yes)
CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
CFLAGS="-W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs -g"
CFLAGS="$CFLAGS -g"
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs"
fi
;;
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