xen/lto: if the makefile asks for binary, always build binary
PATCH 1/1 xen/lto: if the makefile asks for binary, always build binary
# HG changeset patch
# User Tim Deegan <[email protected]>
# 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 <[email protected]>
xen/Rules.mk +3 -0
@@ -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 $@