aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/Config.mk b/Config.mk
index f3f1b7910f..80f25faeff 100644
--- a/Config.mk
+++ b/Config.mk
@@ -11,6 +11,7 @@ realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "
# A debug build of Xen and tools?
debug ?= y
+debug_symbols ?= $(debug)
XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \
-e s/i86pc/x86_32/ -e s/amd64/x86_64/ -e s/arm.*/arm/)
@@ -147,7 +148,7 @@ define buildmakevars2file-closure
$(call move-if-changed,$(1).tmp,$(1))
endef
-ifeq ($(debug),y)
+ifeq ($(debug_symbols),y)
CFLAGS += -g
endif