Define NDEBUG for non-debug builds
This commit is contained in:
parent
8ba032c424
commit
fdb25ca903
|
@ -3499,6 +3499,10 @@ then
|
||||||
|
|
||||||
$as_echo "#define DEBUG 1" >>confdefs.h
|
$as_echo "#define DEBUG 1" >>confdefs.h
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
$as_echo "#define NDEBUG 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
|
|
|
@ -40,6 +40,8 @@ then
|
||||||
CFLAGS="${CFLAGS} -g"
|
CFLAGS="${CFLAGS} -g"
|
||||||
CXXFLAGS="${CXXFLAGS} -g"
|
CXXFLAGS="${CXXFLAGS} -g"
|
||||||
AC_DEFINE(DEBUG, 1, [Compile with debug code])
|
AC_DEFINE(DEBUG, 1, [Compile with debug code])
|
||||||
|
else
|
||||||
|
AC_DEFINE(NDEBUG, 1, [Compile without debug code])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl ###################
|
dnl ###################
|
||||||
|
|
Loading…
Reference in New Issue