File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1313,7 +1313,7 @@ AC_SUBST(TARGET_LDFLAGS_OLDMAGIC)
13131313
13141314LDFLAGS="$TARGET_LDFLAGS"
13151315
1316- if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test "$target_cpu" = riscv64 ; then
1316+ if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 ; then
13171317 # Use large model to support 4G memory
13181318 AC_CACHE_CHECK ( [ whether option -mcmodel=large works] , grub_cv_cc_mcmodel , [
13191319 CFLAGS="$TARGET_CFLAGS -mcmodel=large"
@@ -1323,9 +1323,11 @@ if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test "$target_
13231323 ] )
13241324 if test "x$grub_cv_cc_mcmodel" = xyes; then
13251325 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
1326- elif test "$target_cpu" = sparc64 || test "$target_cpu" = riscv64 ; then
1326+ elif test "$target_cpu" = sparc64; then
13271327 TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
13281328 fi
1329+ elif test "$target_cpu" = riscv64 ; then
1330+ TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=medany"
13291331fi
13301332
13311333if test "$target_cpu"-"$platform" = x86_64-efi; then
You can’t perform that action at this time.
0 commit comments