attr: use build_with_debug() helper function

This commit is contained in:
MilhouseVH 2018-02-19 07:08:48 +00:00
parent 9dd6be587a
commit 75a1f9e1d9

View File

@ -34,7 +34,7 @@ PKG_CONFIGURE_OPTS_TARGET="OPTIMIZER= \
INSTALL_USER=root INSTALL_GROUP=root \
--disable-shared --enable-static"
if [ "$DEBUG" = yes ]; then
if build_with_debug; then
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET DEBUG=-DDEBUG"
else
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET DEBUG=-DNDEBUG"