summaryrefslogtreecommitdiffstats
path: root/cddl/usr.sbin
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2013-08-27 04:01:31 +0000
committerwill <will@FreeBSD.org>2013-08-27 04:01:31 +0000
commit1b508b8cc86a59427c841ab4ffbf912887462b37 (patch)
tree1c1333501c8c691d30dc5aad4d8d4d553c863ed1 /cddl/usr.sbin
parent68734fc2a72e2d1ce0edd0118db8fd449e3f801c (diff)
downloadFreeBSD-src-1b508b8cc86a59427c841ab4ffbf912887462b37.zip
FreeBSD-src-1b508b8cc86a59427c841ab4ffbf912887462b37.tar.gz
Build all ZFS testing & debugging tools with -g.
These programs and everything using libzpool rely on the embedded asserts to verify the correctness of operations. Given that, the core dumps would be useless without debug symbols.
Diffstat (limited to 'cddl/usr.sbin')
-rw-r--r--cddl/usr.sbin/zdb/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/cddl/usr.sbin/zdb/Makefile b/cddl/usr.sbin/zdb/Makefile
index 8068385..fa9ab98 100644
--- a/cddl/usr.sbin/zdb/Makefile
+++ b/cddl/usr.sbin/zdb/Makefile
@@ -27,7 +27,8 @@ DPADD= ${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBPTHREAD} ${LIBUMEM} \
${LIBUUTIL} ${LIBZFS_CORE} ${LIBZFS} ${LIBZPOOL}
LDADD= -lgeom -lm -lnvpair -lpthread -lumem -luutil -lzfs_core -lzfs -lzpool
-CFLAGS+= -DDEBUG=1
-#DEBUG_FLAGS+= -g
+# Since there are many asserts in this program, it makes no sense to compile
+# it without debugging.
+CFLAGS+= -g -DDEBUG=1
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud