[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 8/8] configure: Try -msoft-float -mfloat-abi=soft on arm
From: |
Vladimir Serbinenko |
Subject: |
[PATCH 8/8] configure: Try -msoft-float -mfloat-abi=soft on arm |
Date: |
Wed, 11 Sep 2024 12:41:25 +0300 |
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index d4a14bf93..2bca8814b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -941,6 +941,11 @@ if test x"$platform" != xemu ; then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_target_cc_soft_float="-m4-nofpu"], [])
fi
+ if test "x$target_cpu" = xarm; then
+ CFLAGS="$TARGET_CFLAGS -msoft-float -mfloat-abi=soft -Werror"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
+ [grub_cv_target_cc_soft_float="-msoft-float
-mfloat-abi=soft"], [])
+ fi
for cand in "-msoft-float -Xclang -msoft-float -Xclang -no-implicit-float"
\
"-Xclang -msoft-float -Xclang -no-implicit-float" \
"-Xclang -msoft-float" "-msoft-float"; do
--
2.39.2
- [PATCH 1/8] riscv64: Support riscv_align relocations, Vladimir Serbinenko, 2024/09/11
- [PATCH 2/8] compiler-rt: Add __multi3, Vladimir Serbinenko, 2024/09/11
- [PATCH 5/8] efi/linux: Silence warning, Vladimir Serbinenko, 2024/09/11
- [PATCH 3/8] Support clang integrated-as sparc64, Vladimir Serbinenko, 2024/09/11
- [PATCH 4/8] powerpc-ieee1275: Fix warnings and alignment, Vladimir Serbinenko, 2024/09/11
- [PATCH 6/8] btrfs: Add an explicit GRUB_PACKED, Vladimir Serbinenko, 2024/09/11
- [PATCH 8/8] configure: Try -msoft-float -mfloat-abi=soft on arm,
Vladimir Serbinenko <=
- [PATCH 7/8] Enable __clzsi2/__clzdi2 on arm, Vladimir Serbinenko, 2024/09/11