grub-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]