From: Tim Deegan Subject: [PATCH] xen/lto: if the makefile asks for binary, always build binary Date: Thu, 7 Apr 2011 12:25:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Tim Deegan # 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 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 $@