diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-04-07 15:08:32 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-04-07 15:08:32 +0100 |
commit | 0d64bb7057e54ac00f6ad5f7d36fc461f290ec5e (patch) | |
tree | dba975973bda22328631c11ef4ba5cfeff7e4f46 /xen/Rules.mk | |
parent | 33ba1e8196878dd5dc210164048aeea703b8d3af (diff) | |
download | xen-0d64bb7057e54ac00f6ad5f7d36fc461f290ec5e.tar.gz xen-0d64bb7057e54ac00f6ad5f7d36fc461f290ec5e.tar.bz2 xen-0d64bb7057e54ac00f6ad5f7d36fc461f290ec5e.zip |
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>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r-- | xen/Rules.mk | 3 |
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 $@ |