summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-02-04 14:39:26 +0000
committerRoy Marples <roy@marples.name>2014-02-04 14:39:26 +0000
commita9d78def54772d69362d08a9ca83b657e26bd392 (patch)
tree745a4d3b0661e98cec14f1f1bf9d00d979f655a8 /configure
parent47ecfbd00258566085f39965bfa2d0d0ef37ac99 (diff)
downloaddhcpcd-a9d78def54772d69362d08a9ca83b657e26bd392.tar.xz
Remove DEBUG_MEMORY guard and always free memory and resources.
Remove all atexit(3) and exit(3) calls, instead exiting via the eloop.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 2 insertions, 7 deletions
diff --git a/configure b/configure
index 98307f8c..ad89b9d7 100755
--- a/configure
+++ b/configure
@@ -293,21 +293,16 @@ for x in $INCLUDEDIR; do
echo "CPPFLAGS+= -I$x" >>$CONFIG_MK
done
-if [ -n "$DEBUG" -a "$DEBUG" != no -a "$DEBUG" != false ]; then
- echo "Enabling memory debugging"
- echo "CPPFLAGS+= -DDEBUG_MEMORY" >>$CONFIG_MK
- echo "CFLAGS+= -g" >>$CONFIG_MK
-elif [ -z "$DEBUG" -a -f .fslckout ]; then
+if [ -z "$DEBUG" -a -f .fslckout ]; then
printf "Found fossil checkout ... "
DEBUG=yes
- echo "CFLAGS+= -g" >>$CONFIG_MK
else
DEBUG=no
fi
if [ "$DEBUG" != no -a "$DEBUG" != false ]; then
echo "Adding debugging CFLAGS"
cat <<EOF >>$CONFIG_MK
-CFLAGS+= -Wall -Wextra -Wimplicit -Wshadow -Wformat=2
+CFLAGS+= -g -Wall -Wextra -Wimplicit -Wshadow -Wformat=2
CFLAGS+= -Wmissing-prototypes -Wmissing-declarations
CFLAGS+= -Wmissing-noreturn -Wmissing-format-attribute
CFLAGS+= -Wredundant-decls -Wnested-externs