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?
This commit is contained in:
Warner Losh 2006-09-11 05:35:57 +00:00
parent ba15c568ab
commit 4df1f59e8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162210
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -282,6 +282,7 @@ WITH_IDEA=
#
.for var in \
ACPI \
ASSERT_DEBUG \
ATM \
AUDIT \
AUTHPF \

View File

@ -10,6 +10,10 @@
CFLAGS+=${COPTS}
.endif
.if ${MK_ASSERT_DEBUG} == "no"
CFLAGS+= -DNDEBUG
.endif
.if defined(DEBUG_FLAGS)
CFLAGS+=${DEBUG_FLAGS}
.endif