Add NDEBUG to CPPFLAGS if --enable-debug is unset.

This commit is contained in:
Juan RP 2013-12-06 11:55:08 +01:00
parent e23c64bc84
commit 1f16a22791
2 changed files with 2 additions and 4 deletions

2
configure vendored
View File

@ -200,6 +200,8 @@ if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
echo "Building with debugging symbols." echo "Building with debugging symbols."
echo "CPPFLAGS += -DDEBUG" >>$CONFIG_MK echo "CPPFLAGS += -DDEBUG" >>$CONFIG_MK
echo "CFLAGS += -g" >>$CONFIG_MK echo "CFLAGS += -g" >>$CONFIG_MK
else
echo "CPPFLAGS+= -DNDEBUG" >>$CONFIG_MK
fi fi
case "$OS" in case "$OS" in

View File

@ -27,10 +27,6 @@
#ifndef _XBPS_API_IMPL_H_ #ifndef _XBPS_API_IMPL_H_
#define _XBPS_API_IMPL_H_ #define _XBPS_API_IMPL_H_
#ifndef DEBUG
#define NDEBUG
#endif
#include <assert.h> #include <assert.h>
#include <confuse.h> #include <confuse.h>
#define LIBXBPS_PRIVATE #define LIBXBPS_PRIVATE