build: minor adjustment
cover build: minor adjustment
Wei Liu (2):
build: move debug_symbols to tools/Rules.mk
build: use debug_symbols to add -g3
Config.mk | 5 ----- tools/Rules.mk | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 1/2 build: move debug_symbols to tools/Rules.mk
31d41d7b tried to make debug affect tools build only but failed to move debug_symbols (which appends "-g" to CFLAGS) to tools/Rules.mk. Do that in this patch.
---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
--- Config.mk | 5 ----- tools/Rules.mk | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-)
Config.mk +0 -5
@@ -19,7 +19,6 @@ or = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip $(3)),$( # A debug build of tools? # Hypervisor debug build is controlled by Kconfig. 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/ \
@@ -211,10 +210,6 @@ define buildmakevars2header-closure $(call move-if-changed,$(1).tmp,$(1)) endef -ifeq ($(debug_symbols),y) -CFLAGS += -g -endif - CFLAGS += -fno-strict-aliasing CFLAGS += -std=gnu99
tools/Rules.mk +5 -0
@@ -26,6 +26,11 @@ CFLAGS_xeninclude = -I$(XEN_INCLUDE) XENSTORE_XENSTORED ?= y +debug_symbols ?= $(debug) +ifeq ($(debug_symbols),y) +CFLAGS += -g +endif + ifneq ($(nosharedlibs),y) INSTALL_SHLIB = $(INSTALL_PROG) SYMLINK_SHLIB = ln -sf
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Re: [PATCH 1/2] build: move debug_symbols to tools/Rules.mk
Config.mk or = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip $(3)),$( · line 22
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 21.12.16 at 17:44, <[email protected]> wrote:
Config.mk +0
-1@@ -19,7 +19,6 @@ or = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip $(3)),$( # A debug build of tools? # Hypervisor debug build is controlled by Kconfig. debug ?= y -debug_symbols ?= $(debug)
Wouldn't it be possible and make sense to move "debug" at once?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Re: [PATCH 1/2] build: move debug_symbols to tools/Rules.mk
Quoted 11 lines · Jan Beulich
Config.mk or = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip $(3)),$( · line 22
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 21.12.16 at 17:44, <[email protected]> wrote:
Config.mk +0
-1@@ -19,7 +19,6 @@ or = $(if $(strip $(1)),$(1),$(if $(strip $(2)),$(2),$(if $(strip $(3)),$( # A debug build of tools? # Hypervisor debug build is controlled by Kconfig. debug ?= y -debug_symbols ?= $(debug)Wouldn't it be possible and make sense to move "debug" at once?
Fine by me.
Wei.
Quoted 2 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
PATCH 2/2 build: use debug_symbols to add -g3
In reply to Wei LiuWhile doing archeology I found 38ce7ce3, we should also make sure debug_symbols is the responsible for adding "-g" to CFLAGS.
Move adding "-g3" from being guarded by debug to being guarded by debug_symbols.
---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
--- tools/Rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/Rules.mk +2 -2
@@ -28,7 +28,7 @@ XENSTORE_XENSTORED ?= y debug_symbols ?= $(debug) ifeq ($(debug_symbols),y) -CFLAGS += -g +CFLAGS += -g3 endif ifneq ($(nosharedlibs),y)
@@ -143,7 +143,7 @@ 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 +CFLAGS += -O0 -fno-omit-frame-pointer # But allow an override to -O0 in case Python enforces -D_FORTIFY_SOURCE=<n>. PY_CFLAGS += $(PY_NOOPT_CFLAGS) else
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel