Commit 1b6f5ae1 authored by Tiago Peixoto's avatar Tiago Peixoto

Add -DNDEBUG to CXXFLAGS to disable assert() when --enable-debug is not being used

parent 53e686e5
......@@ -44,13 +44,15 @@ AC_MSG_CHECKING(whether to enable debug info...)
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],[compile debug information [default=disabled] ])],
if test $enableval = yes; then
[AC_DEFINE([DEBUG], 1, [compile debug info])]
[CXXFLAGS=" ${CXXFLAGS} -ggdb3"]
[CXXFLAGS="${CXXFLAGS} -ggdb3"]
[AC_MSG_RESULT(yes)]
else
[CXXFLAGS="${CXXFLAGS} -DNDEBUG"]
[AC_MSG_RESULT(no)]
fi
,
[AC_MSG_RESULT(no)]
,
[CXXFLAGS="${CXXFLAGS} -DNDEBUG"]
[AC_MSG_RESULT(no)]
)
dnl enable c++11
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment