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:
parent
ba15c568ab
commit
4df1f59e8f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162210
@ -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
|
||||
|
@ -282,6 +282,7 @@ WITH_IDEA=
|
||||
#
|
||||
.for var in \
|
||||
ACPI \
|
||||
ASSERT_DEBUG \
|
||||
ATM \
|
||||
AUDIT \
|
||||
AUTHPF \
|
||||
|
@ -10,6 +10,10 @@
|
||||
CFLAGS+=${COPTS}
|
||||
.endif
|
||||
|
||||
.if ${MK_ASSERT_DEBUG} == "no"
|
||||
CFLAGS+= -DNDEBUG
|
||||
.endif
|
||||
|
||||
.if defined(DEBUG_FLAGS)
|
||||
CFLAGS+=${DEBUG_FLAGS}
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user