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.
This commit is contained in:
will 2013-08-27 04:01:31 +00:00
parent 68734fc2a7
commit 1b508b8cc8
3 changed files with 10 additions and 6 deletions
cddl
lib/libzpool
usr.bin/ztest
usr.sbin/zdb

@ -64,7 +64,9 @@ NO_PROFILE=
CSTD= c99
CFLAGS+= -DDEBUG=1
#DEBUG_FLAGS+= -g
# Since there are many asserts in this library, it makes no sense to compile
# it without debugging.
CFLAGS+= -g -DDEBUG=1
.include <bsd.lib.mk>

@ -25,7 +25,8 @@ LDADD= -lgeom -lm -lnvpair -lumem -lzpool -lpthread -lavl -lzfs_core -lzfs \
CSTD= c99
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>

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