Always build with DEBUG and enable assertions.

This commit is contained in:
Juan RP 2013-10-07 08:20:42 +02:00
parent 8d5c48b861
commit 0db47cff9c
2 changed files with 2 additions and 5 deletions

3
configure vendored
View File

@ -200,9 +200,10 @@ fi
if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
echo "Building with debugging symbols."
echo "CFLAGS += -g" >>$CONFIG_MK
echo "CPPFLAGS += -DDEBUG" >>$CONFIG_MK
fi
echo "CPPFLAGS += -DDEBUG" >>$CONFIG_MK
case "$OS" in
linux)
echo "CPPFLAGS += -D_XOPEN_SOURCE=700" >>$CONFIG_MK

View File

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