--- configure.ac +++ configure.ac @@ -71,17 +71,16 @@ MINIMAL_CFLAGS="$RELEASEFLAGS" if test "x$GCC" = "xyes"; then -# DEBUGFLAGS="$DEBUGFLAGS -Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -O1 -g -pipe" - DEBUGFLAGS="$DEBUGFLAGS -Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -O0 -g -pipe" - RELEASEFLAGS="$RELEASEFLAGS -g0 -O2 -Wall -pipe" - MINIMAL_CFLAGS="$MINIMAL_CFLAGS -g0 -O0" +# DEBUGFLAGS="$DEBUGFLAGS -Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum" + DEBUGFLAGS="$DEBUGFLAGS -Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum" + RELEASEFLAGS="$RELEASEFLAGS -Wall" + MINIMAL_CFLAGS="$MINIMAL_CFLAGS" fi BUILDFLAGS="$RELEASEFLAGS" AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],[enable debug support [default=no]])],[AC_MSG_NOTICE([enabling debug build]) BUILDFLAGS="$DEBUGFLAGS"]) -#CXXFLAGS="$CXXFLAGS $BUILDFLAGS" -CXXFLAGS="$BUILDFLAGS" +CXXFLAGS="$CXXFLAGS $BUILDFLAGS" AC_SUBST(PERL) AC_SUBST(XARGS)