From a30066cd6fc29feb09a9ce9eff485bbc71783f55 Mon Sep 17 00:00:00 2001 From: tg Date: Sat, 2 Aug 2008 17:40:37 +0000 Subject: [PATCH] =?UTF-8?q?run=20millert=E2=80=99s=20afree=20checker=20by?= =?UTF-8?q?=20default=20(idea=20from=20openbsd)=20if=20MirOS-current=20and?= =?UTF-8?q?=20not=20MirOS-stable=20(via=20DEBUGLIBS=20from=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42674e1..065348f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/Makefile,v 1.60 2008/06/21 19:20:15 tg Exp $ +# $MirOS: src/bin/mksh/Makefile,v 1.61 2008/08/02 17:40:37 tg Exp $ #- # use CPPFLAGS=-DDEBUG __CRAZY=Yes to check for certain more stuff @@ -8,6 +8,9 @@ PROG= mksh SRCS= alloc.c edit.c eval.c exec.c expr.c funcs.c histrap.c \ jobs.c lex.c main.c misc.c shf.c syn.c tree.c var.c .if !make(test-build) +. if ${DEBUGLIBS:L} == "yes" +CPPFLAGS+= -DMKSH_AFREE_DEBUG # MirOS development version +. endif CPPFLAGS+= -DMKSH_ASSUME_UTF8 \ -DHAVE_EXPSTMT=1 -DHAVE_ATTRIBUTE=1 \ -DHAVE_ATTRIBUTE_BOUNDED=1 -DHAVE_ATTRIBUTE_USED=1 \