Signed-off-by: Vladimir Serbinenko <phco...@gmail.com>
---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index fbeea0c70..e34e3cd59 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1322,8 +1322,10 @@ if test "$target_cpu" = x86_64 || test "$target_cpu" = 
sparc64 || test "$target_
   ])
   if test "x$grub_cv_cc_mcmodel" = xyes; then
     TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
-  elif test "$target_cpu" = sparc64 || test "$target_cpu" = riscv64; then
+  elif test "$target_cpu" = sparc64 ; then
     TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
+  else
+    AC_MSG_ERROR([-mcmodel=large not supported, upgrade your gcc])
   fi
 fi
 
-- 
2.49.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to