aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:27:02 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-18 16:04:26 +1000
commit98e09fb48a22949fe8e073f866425643e9501767 (patch)
treee5ac49682c58a2d9bb1b2af5a3677a23186337be /Makefile.main
parent3c549d25eda9a4844c95207e8aa15e0928e14f5f (diff)
downloadskiboot-98e09fb48a22949fe8e073f866425643e9501767.zip
skiboot-98e09fb48a22949fe8e073f866425643e9501767.tar.gz
skiboot-98e09fb48a22949fe8e073f866425643e9501767.tar.bz2
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 <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main1
1 files changed, 1 insertions, 0 deletions
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