Move the no-mmx/no-sse CFLAGS to X86-64 and IA32 defines in preparation
for ARM32 and Aarch64 support.

Signed-off-by: Koen Kooi <koen.k...@linaro.org>
---
 Makefile.am | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 6568a35..2cca313 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -94,17 +94,23 @@ efi_cflags = \
        -ffreestanding \
        -fno-strict-aliasing \
        -fno-stack-protector \
-       -Wsign-compare \
-       -mno-sse \
-       -mno-mmx
+       -Wsign-compare
 
 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_$(ARCH)_efi.lds \
-- 
2.0.1

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to