Module Name: src Committed By: christos Date: Wed Feb 12 22:23:34 UTC 2025
Modified Files: src/external/mpl/dhcp: Makefile.inc Log Message: Add commented out memory debugging stuff. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/mpl/dhcp/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/mpl/dhcp/Makefile.inc diff -u src/external/mpl/dhcp/Makefile.inc:1.13 src/external/mpl/dhcp/Makefile.inc:1.14 --- src/external/mpl/dhcp/Makefile.inc:1.13 Mon Feb 19 15:39:13 2024 +++ src/external/mpl/dhcp/Makefile.inc Wed Feb 12 17:23:34 2025 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.13 2024/02/19 20:39:13 christos Exp $ +# $NetBSD: Makefile.inc,v 1.14 2025/02/12 22:23:34 christos Exp $ WARNS?= 1 # XXX -Wshadow -Wcast-qual -Wsign-compare @@ -14,6 +14,7 @@ BIND:= ${.PARSEDIR}/bind BINDDIST= ${BIND}/dist .PATH: ${DIST}/${DHCPSRCDIR} +CPPFLAGS+= -DPOINTER_DEBUG .if (${USE_INET6} != "no") CPPFLAGS+= -DDHCPv6 .endif @@ -26,6 +27,11 @@ CPPFLAGS+= -I${BINDDIST}/lib/${dir}/unix CPPFLAGS+= -I${BINDDIST}/lib/${dir}/pthreads/include .endfor CPPFLAGS+= -DLOCALSTATEDIR='"/var"' + +#CPPFLAGS+=-DPOINTER_DEBUG -DDEBUG_MEMORY_LEAKAGE +#CPPFLAGS+=-DDEBUG_MALLOC_POOL -DDEBUG_MEMORY_LEAKAGE_ON_EXIT +#CPPFLAGS+=-DDEBUG_MALLOC_POOL_EXHAUSTIVELY -DDEBUG_REFCNT_DMALLOC_FREE + .if defined(PROG) && ${PROG} == "dhclient" && ${MKSANITIZER:Uno} != "yes" # We link the libraries that are in /usr/lib and not in /lib statically # because dhclient is in /sbin and is needed before /usr is mounted in