From 443e96381a0e24d9c22578ba6f7fb96de1814994 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Sep 2011 07:31:06 +0200 Subject: configure.ac: disable assertions in the non-debugging build Add -DNDEBUG to AM_CPPFLAGS. --- configure.ac | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1c0a38ce1..9a9576271 100644 --- a/configure.ac +++ b/configure.ac @@ -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 -- cgit v1.2.3