]> xenbits.xensource.com Git - xen.git/commitdiff
adjust x86 EFI build
authorJan Beulich <jbeulich@suse.com>
Wed, 10 Jul 2013 08:03:40 +0000 (10:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Jul 2013 08:03:40 +0000 (10:03 +0200)
While the rule to generate .init.o files from .o ones already correctly
included $(extra-y), the setting of the necessary compiler flag didn't
have the same. With some yet to be posted patch this resulted in build
breakage because of the compiler deciding not to inline a few functions
(which then results in .text not being empty as required for these
object files).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/Rules.mk

index 3f0b2622283e860ee661a7736c5ab2c033ca0eeb..4d182b900654439d842cd333e495b7d1100dc80f 100644 (file)
@@ -101,7 +101,7 @@ obj-y    := $(patsubst %/,%/built-in.o,$(obj-y))
 
 subdir-all := $(subdir-y) $(subdir-n)
 
-$(filter %.init.o,$(obj-y) $(obj-bin-y)): CFLAGS += -DINIT_SECTIONS_ONLY
+$(filter %.init.o,$(obj-y) $(obj-bin-y) $(extra-y)): CFLAGS += -DINIT_SECTIONS_ONLY
 
 $(obj-$(coverage)): CFLAGS += -fprofile-arcs -ftest-coverage -DTEST_COVERAGE