From 0db47cff9cd12f822163aed5a44be9be0dd1d71b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 7 Oct 2013 08:20:42 +0200 Subject: [PATCH] Always build with DEBUG and enable assertions. --- configure | 3 ++- include/xbps_api_impl.h | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configure b/configure index fbeaff5a..c74552d6 100755 --- a/configure +++ b/configure @@ -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 diff --git a/include/xbps_api_impl.h b/include/xbps_api_impl.h index 43e4e0eb..5ce99665 100644 --- a/include/xbps_api_impl.h +++ b/include/xbps_api_impl.h @@ -27,10 +27,6 @@ #ifndef _XBPS_API_IMPL_H_ #define _XBPS_API_IMPL_H_ -#ifndef DEBUG -#define NDEBUG -#endif - #include #include #define LIBXBPS_PRIVATE