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>
Acked-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Tim Deegan committed 2011-04-07 15:08:32 +01:00
1 parent 33ba1e8196
commit 0d64bb7057
1 file changed
+3
+3
View File
@@ -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 $@
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.