From 98e09fb48a22949fe8e073f866425643e9501767 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 24 Jul 2016 09:27:02 +1000 Subject: Build host programs (and checks) with debug enabled This enables memory poisoning in allocations and list checking among other things. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Stewart Smith --- Makefile.main | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.main') diff --git a/Makefile.main b/Makefile.main index 179ed11..098e593 100644 --- a/Makefile.main +++ b/Makefile.main @@ -39,6 +39,7 @@ HOSTCFLAGS += $(call try-cflag,$(HOSTCC),-Wjump-misses-init) \ $(call try-cflag,$(HOSTCC),-Wsuggest-attribute=const) \ $(call try-cflag,$(HOSTCC),-Wsuggest-attribute=noreturn) \ $(call try-cflag,$(HOSTCC),-Wstack-usage=1024) +HOSTCFLAGS += -DDEBUG -DCCAN_LIST_DEBUG VALGRIND=valgrind -q --show-reachable=yes --error-exitcode=99 -- cgit v1.1