From: Koen Kooi Date: Sat, 11 Apr 2015 08:23:22 +0000 (+0200) Subject: build: support non-x86 EFI builds X-Git-Tag: v220~473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32ef61b88864e0de2edd8dbadfc315ee4c353324;p=thirdparty%2Fsystemd.git build: support non-x86 EFI builds Move the no-mmx/no-sse CFLAGS to X86-64 and IA32 defines in preparation for ARM32 and Aarch64 support. --- diff --git a/Makefile.am b/Makefile.am index 1ff74bbdcd0..f30fe296aae 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2564,17 +2564,23 @@ efi_cflags = \ -fno-strict-aliasing \ -fno-stack-protector \ -Wsign-compare \ - -Wno-missing-field-initializers \ - -mno-sse \ - -mno-mmx + -Wno-missing-field-initializers if ARCH_X86_64 efi_cflags += \ -mno-red-zone \ + -mno-sse \ + -mno-mmx \ -DEFI_FUNCTION_WRAPPER \ -DGNU_EFI_USE_MS_ABI endif +if ARCH_IA32 +efi_cflags += \ + -mno-sse \ + -mno-mmx +endif + efi_ldflags = \ $(EFI_LDFLAGS) \ -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \