* configure.ac: Use -mcmodel=large on x86_64-emu as well.

Reported by: qwertial.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-04-29 19:14:46 +02:00
parent 3476e0ef42
commit 46546fc577
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Use -mcmodel=large on x86_64-emu as well.
Reported by: qwertial.
2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
* grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees

View File

@ -605,7 +605,7 @@ if test "x$target_m64" = x1; then
TARGET_MODULE_FORMAT="elf64"
fi
if test "$target_cpu"-"$platform" = x86_64-efi; then
if test "$target_cpu" = x86_64; then
# Use large model to support 4G memory
AC_CACHE_CHECK([whether option -mcmodel=large works], grub_cv_cc_mcmodel, [
SAVED_CFLAGS=$CFLAGS
@ -619,7 +619,9 @@ if test "$target_cpu"-"$platform" = x86_64-efi; then
else
TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
fi
fi
if test "$target_cpu"-"$platform" = x86_64-efi; then
# EFI writes to stack below %rsp, we must not use the red zone
AC_CACHE_CHECK([whether option -mno-red-zone works], grub_cv_cc_no_red_zone, [
CFLAGS="$CFLAGS -m64 -mno-red-zone"