mirror of https://github.com/Icinga/icinga2.git
Disable debugging by default.
This commit is contained in:
parent
e334f126c8
commit
fae0cf8b0d
|
@ -67,14 +67,12 @@ AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
|
||||||
AC_CHECK_FUNCS([backtrace_symbols])
|
AC_CHECK_FUNCS([backtrace_symbols])
|
||||||
|
|
||||||
AC_MSG_CHECKING(whether to enable debugging)
|
AC_MSG_CHECKING(whether to enable debugging)
|
||||||
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging (default=yes)],, enable_debug=yes)
|
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging (default=no)],, enable_debug=no)
|
||||||
if test "x$enable_debug" = "xyes"; then
|
if test "x$enable_debug" = "xyes"; then
|
||||||
CFLAGS="$CFLAGS -g -O0"
|
CFLAGS="$CFLAGS -g -O0"
|
||||||
CXXFLAGS="$CXXFLAGS -g -O0"
|
CXXFLAGS="$CXXFLAGS -g -O0"
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
CFLAGS="$CFLAGS -O2"
|
|
||||||
CXXFLAGS="$CFLAGS -O2"
|
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue