summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.lib.mk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-09-11 05:35:57 +0000
committerimp <imp@FreeBSD.org>2006-09-11 05:35:57 +0000
commitf31deb485627174ae762b068d7f9ba068cc7db50 (patch)
tree663a27691390ad33f17e9811dab2b47717ea524c /share/mk/bsd.lib.mk
parent1173d87244a5458ccb8c97dfaf4191a0ac1b9eb2 (diff)
downloadFreeBSD-src-f31deb485627174ae762b068d7f9ba068cc7db50.zip
FreeBSD-src-f31deb485627174ae762b068d7f9ba068cc7db50.tar.gz
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?
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r--share/mk/bsd.lib.mk4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud