Tim Deegan
2011-Apr-07 11:25 UTC
[Xen-devel] [PATCH] xen/lto: if the makefile asks for binary, always build binary
# HG changeset patch # User Tim Deegan <Tim.Deegan@citrix.com> # 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@citrix.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel