logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: c5e080d03c86c235483a97ae6509ebf84a55f552
parent 6857c6eb4de23c2ff611b7030aa2bb9cf6f67d21
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 23 Sep 2024 05:50:51 +0200

configure: always add -DDEBUG -UNDEBUG

Diffstat:

Mconfigure6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure b/configure @@ -127,8 +127,7 @@ CC="${CC:-${CROSS_COMPILE}cc}" YACC="${YACC:-yacc}" MAKE="${MAKE:-make}" GCOV="${GCOV:-${CROSS_COMPILE}gcov}" -# -DDEBUG: Otherwise assert() does nothing, fine to be removed in production -CFLAGS="${CFLAGS:--g -O2 -DDEBUG}" +CFLAGS="${CFLAGS:--g -O2}" M4="${M4:-m4}" MANDOC="${MANDOC:-mandoc}" CRAM="${CRAM:-cram}" @@ -168,6 +167,9 @@ MANDIR="${MANDIR:-${PREFIX}/share/man}" # Add some extra CFLAGS CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}" +# Otherwise assert() can end up doing nothing, don't remove +CFLAGS="${CFLAGS} -DDEBUG -UNDEBUG" + ## System checks # commands check_cmd CC "$CC" || exit 1