diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-08-13 18:09:33 +0100 |
---|---|---|
committer | Andrew Cooper <andrew.cooper3@citrix.com> | 2012-08-13 18:09:33 +0100 |
commit | 38ce7ce35a667e7382da8b74c245b6cbf7ad7c5b (patch) | |
tree | 5ae1bdd07fca5d5c0b7a6c5fddbdd6a1b56d6657 /Config.mk | |
parent | 1b7378d1b6289cc417c35bf1675d188390534643 (diff) | |
download | xen-38ce7ce35a667e7382da8b74c245b6cbf7ad7c5b.tar.gz xen-38ce7ce35a667e7382da8b74c245b6cbf7ad7c5b.tar.bz2 xen-38ce7ce35a667e7382da8b74c245b6cbf7ad7c5b.zip |
config: Split debug build from debug symbols
RPM based packaging systems expect binaries to have debug symbols which get
placed in a separate debuginfo RPM.
Split the concept of a debug build up so that binaries can be built with
debugging symbols without having the other gubbins which $(debug) implies, most
notibly frame pointers.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Tested-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'Config.mk')
-rw-r--r-- | Config.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |