diff options
-rw-r--r-- | cmd/raidz_test/Makefile.am | 2 | ||||
-rw-r--r-- | cmd/zdb/Makefile.am | 2 | ||||
-rw-r--r-- | cmd/zhack/Makefile.am | 3 | ||||
-rw-r--r-- | cmd/ztest/Makefile.am | 2 | ||||
-rw-r--r-- | lib/libzpool/Makefile.am | 3 | ||||
-rw-r--r-- | tests/zfs-tests/cmd/btree_test/Makefile.am | 2 |
6 files changed, 10 insertions, 4 deletions
diff --git a/cmd/raidz_test/Makefile.am b/cmd/raidz_test/Makefile.am index ccfa7019c..72c914e64 100644 --- a/cmd/raidz_test/Makefile.am +++ b/cmd/raidz_test/Makefile.am @@ -4,7 +4,7 @@ include $(top_srcdir)/config/Rules.am AM_CFLAGS += $(FRAME_LARGER_THAN) # Unconditionally enable ASSERTs -AM_CPPFLAGS += -DDEBUG -UNDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG bin_PROGRAMS = raidz_test diff --git a/cmd/zdb/Makefile.am b/cmd/zdb/Makefile.am index 7a29e54f6..b325cb060 100644 --- a/cmd/zdb/Makefile.am +++ b/cmd/zdb/Makefile.am @@ -1,7 +1,7 @@ include $(top_srcdir)/config/Rules.am # Unconditionally enable debugging for zdb -AM_CPPFLAGS += -DDEBUG -UNDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG sbin_PROGRAMS = zdb diff --git a/cmd/zhack/Makefile.am b/cmd/zhack/Makefile.am index 6c5b5d096..5cddac32b 100644 --- a/cmd/zhack/Makefile.am +++ b/cmd/zhack/Makefile.am @@ -1,5 +1,8 @@ include $(top_srcdir)/config/Rules.am +# Unconditionally enable debugging for zhack +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG + sbin_PROGRAMS = zhack zhack_SOURCES = \ diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am index 40d029d9f..6042b44d1 100644 --- a/cmd/ztest/Makefile.am +++ b/cmd/ztest/Makefile.am @@ -7,7 +7,7 @@ AM_CFLAGS += $(NO_FORMAT_TRUNCATION) AM_CFLAGS += $(FRAME_LARGER_THAN) # Unconditionally enable ASSERTs -AM_CPPFLAGS += -DDEBUG -UNDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG sbin_PROGRAMS = ztest diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 6256d5e73..7924a425d 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -7,6 +7,9 @@ VPATH = \ $(top_srcdir)/module/os/linux/zfs \ $(top_srcdir)/lib/libzpool +# Unconditionally enable debugging for libzpool +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG + # Suppress unused but set variable warnings often due to ASSERTs AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE) diff --git a/tests/zfs-tests/cmd/btree_test/Makefile.am b/tests/zfs-tests/cmd/btree_test/Makefile.am index 0bb8f9917..4c9a1a4cc 100644 --- a/tests/zfs-tests/cmd/btree_test/Makefile.am +++ b/tests/zfs-tests/cmd/btree_test/Makefile.am @@ -22,7 +22,7 @@ DEFAULT_INCLUDES += \ -I$(top_srcdir)/lib/libspl/include # Unconditionally enable ASSERTs -AM_CPPFLAGS += -DDEBUG -UNDEBUG +AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG pkgexec_PROGRAMS = btree_test btree_test_SOURCES = btree_test.c |