From f31deb485627174ae762b068d7f9ba068cc7db50 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 11 Sep 2006 05:35:57 +0000 Subject: Add a knob for compiling the tree -DNDEBUG. This turns off all the asserts and makes binaries smaller. The binaries also become repeatable again. As it was, without this md5's of binaries built with different paths differed. # Where do I document this? --- share/mk/bsd.lib.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share/mk/bsd.lib.mk') diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index b28930fe..b840152 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -28,6 +28,10 @@ SONAME?= ${SHLIB_NAME} CFLAGS+= ${CRUNCH_CFLAGS} .endif +.if ${MK_ASSERT_DEBUG} == "no" +CFLAGS+= -DNDEBUG +.endif + .if defined(DEBUG_FLAGS) CFLAGS+= ${DEBUG_FLAGS} .endif -- cgit v1.1