From: Wei Liu Date: Thu, 5 Jan 2017 16:36:51 +0000 (+0000) Subject: build: use debug_symbols to add -g3 X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3049 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=097407f811208686cf4772e09b87c4fdf541e2e0;p=xen.git build: use debug_symbols to add -g3 While doing archeology I found 38ce7ce3, we should make sure debug_symbols is responsible for adding "-g" to CFLAGS. Move adding "-g3" from being guarded by debug to being guarded by debug_symbols. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- diff --git a/tools/Rules.mk b/tools/Rules.mk index 9a87f18bf3..b35999b21b 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -31,7 +31,7 @@ debug ?= y debug_symbols ?= $(debug) ifeq ($(debug_symbols),y) -CFLAGS += -g +CFLAGS += -g3 endif ifneq ($(nosharedlibs),y) @@ -145,8 +145,8 @@ LDLIBS_libxenvchan = $(SHDEPS_libxenvchan) $(XEN_LIBVCHAN)/libxenvchan$(libexten SHLIB_libxenvchan = $(SHDEPS_libxenvchan) -Wl,-rpath-link=$(XEN_LIBVCHAN) ifeq ($(debug),y) -# Disable optimizations and enable debugging information for macros -CFLAGS += -O0 -g3 -fno-omit-frame-pointer +# Disable optimizations +CFLAGS += -O0 -fno-omit-frame-pointer # But allow an override to -O0 in case Python enforces -D_FORTIFY_SOURCE=. PY_CFLAGS += $(PY_NOOPT_CFLAGS) else