From: Tim Deegan Date: Thu, 7 Apr 2011 14:08:32 +0000 (+0100) Subject: xen/lto: if the makefile asks for binary, always build binary X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0d64bb7057e54ac00f6ad5f7d36fc461f290ec5e;p=xen.git xen/lto: if the makefile asks for binary, always build binary even if the source is a C file. Signed-off-by: Tim Deegan Acked-by: Keir Fraser --- diff --git a/xen/Rules.mk b/xen/Rules.mk index f48ac56326..fedda9181b 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -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 $@