aboutsummaryrefslogtreecommitdiffstats
path: root/xen/Rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r--xen/Rules.mk3
1 files changed, 3 insertions, 0 deletions
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 $@