From 4a30f1e874a269696b983bd66673809c431edbc0 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 20 Feb 2012 13:50:10 +0000 Subject: config.mk: Check for -fstack-usage support Acked-by: Mike Frysinger Signed-off-by: Tom Rini --- config.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 596ba93592..fa33e62851 100644 --- a/config.mk +++ b/config.mk @@ -232,6 +232,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \ $(call cc-option,-Wno-format-security) CFLAGS += $(CFLAGS_WARN) +# Report stack usage if supported +CFLAGS_STACK := $(call cc-option,-fstack-usage) +CFLAGS += $(CFLAGS_STACK) + # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g # option to the assembler. AFLAGS_DEBUG := -- cgit v1.2.3