configure.ac: disable assertions in the non-debugging build

Add -DNDEBUG to AM_CPPFLAGS.
This commit is contained in:
Max Kellermann 2011-09-16 07:31:06 +02:00
parent 1cbba4fc59
commit 443e96381a
2 changed files with 4 additions and 4 deletions

1
NEWS
View File

@ -1,4 +1,5 @@
ver 0.16.5 (2010/??/??)
* configure.ac: disable assertions in the non-debugging build
* pcm_format: fix 32-to-24 bit conversion (the "silence" bug)
* input:
- rewind: reduce heap usage

View File

@ -1451,10 +1451,9 @@ dnl CFLAGS
dnl ---------------------------------------------------------------------------
dnl ---------------------------------- debug ----------------------------------
#if test "x$enable_debug" = xno; then
# don't set NDEBUG for now, until MPD is stable
#AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
#fi
if test "x$enable_debug" = xno; then
AM_CPPFLAGS="$AM_CPPFLAGS -DNDEBUG"
fi
dnl ----------------------------------- GCC -----------------------------------
if test x$GCC = xyes