mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
33ba1e8196
commit
0d64bb7057
1 file changed
+3
@@ -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 $@
|
||||
|
||||