Since 16f8ec282d44fa2e0d21e94e0d85a433a9a1a827 Fail build on warnings in efi sources
the bootloader build fails when toolchain enbles SSE via -mfpmath=sse" with
cc1: error: SSE instruction set disabled, using 387 arithmetics [-Werror]
I want to have all optimizations enabled for non-bootloader part
so explicitly disable sse via additional compiler flag.
Signed-off-by: Peter Marko <
peter...@siemens.com>
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
index 92bd916..61d4481 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -221,6 +221,7 @@ efi_cflags = \
if ARCH_X86_64
efi_cflags += \
-mno-sse \
+ -mfpmath=387 \
-mno-mmx \
-mno-red-zone
endif
--
2.30.2