WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xen/lto: if the makefile asks for binary, always bui

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen/lto: if the makefile asks for binary, always build binary
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Thu, 7 Apr 2011 12:25:57 +0100
Delivery-date: Thu, 07 Apr 2011 04:30:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.6.4
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1302175153 -3600
# Node ID d07dbbb17473e8b668415b1db96112eaae9f2e09
# Parent  a35934cbfca842e8fb43d16eb488d9da3fb3ebe7
xen/lto: if the makefile asks for binary, always build binary

even if the source is a C file.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>

diff -r a35934cbfca8 -r d07dbbb17473 xen/Rules.mk
--- a/xen/Rules.mk      Thu Apr 07 12:19:06 2011 +0100
+++ b/xen/Rules.mk      Thu Apr 07 12:19:13 2011 +0100
@@ -112,6 +112,9 @@ obj-y += $(obj-bin-y)
 obj-bin-y :=
 endif
 
+# Always build obj-bin files as binary even if they come from C source. 
+$(obj-bin-y): CFLAGS := $(filter-out -flto,$(CFLAGS))
+
 built_in.o: $(obj-y)
 ifeq ($(obj-y),)
        $(CC) $(CFLAGS) -c -x c /dev/null -o $@

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen/lto: if the makefile asks for binary, always build binary, Tim Deegan <=