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 Andrews 2013-08-27 04:01:31 +00:00
parent 000f0835b2
commit 5a5347c3f1
3 changed files with 10 additions and 6 deletions

View File

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

View File

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

View File

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