[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v3] x86-64/EFI: add CFLAGS to check compile



Without this, the compilation of check.c could fail due to compiler
features such as -fstack-protector being enabled, which causes a missing
__stack_chk_fail symbol error.

Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
---

Change from v2: EMBEDDED_EXTRA_CFLAGS may include flags not supported by
the compiler; CFLAGS includes a filtered version of these flags.

diff --git a/xen/arch/x86/efi/Makefile b/xen/arch/x86/efi/Makefile
index 005e3e0..1ba069d 100644
--- a/xen/arch/x86/efi/Makefile
+++ b/xen/arch/x86/efi/Makefile
@@ -5,7 +5,7 @@ obj-y += stub.o
 create = test -e $(1) || touch -t 199901010000 $(1)
 
 efi := $(filter y,$(x86_64)$(shell rm -f disabled))
-efi := $(if $(efi),$(shell $(CC) -c -Werror check.c 2>disabled && echo y))
+efi := $(if $(efi),$(shell $(CC) $(CFLAGS) -c -Werror check.c 2>disabled && 
echo y))
 efi := $(if $(efi),$(shell $(LD) -mi386pep --subsystem=10 -o check.efi check.o 
2>disabled && echo y))
 efi := $(if $(efi),$(shell rm disabled)y,$(shell $(call create,boot.init.o); 
$(call create,runtime.o)))
 
-- 
1.7.11.2


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.