[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] config: Split debug build from debug symbols


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 14 Aug 2012 01:00:09 +0000
  • Delivery-date: Tue, 14 Aug 2012 01:00:26 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
# Date 1344877773 -3600
# Node ID 33d596f46521ea852e90cf6dbdbf3680d104134c
# Parent  9d572b6b65f2da8a75c804a629739d36e4cafe31
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@xxxxxxxxxx>
Tested-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r 9d572b6b65f2 -r 33d596f46521 Config.mk
--- a/Config.mk Mon Aug 13 18:08:37 2012 +0100
+++ b/Config.mk Mon Aug 13 18:09:33 2012 +0100
@@ -11,6 +11,7 @@ realpath = $(wildcard $(foreach file,$(1
 
 # 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
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.