* configure.ac: Make efiemu test cflags match the cflags efiemu is

compiled with.
This commit is contained in:
Vladimir Serbinenko 2013-11-10 14:46:13 +01:00
parent 5645cc7995
commit 3c2304d55f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Make efiemu test cflags match the cflags efiemu is
compiled with.
2013-11-10 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
Fix grub_machine_fini bitrot. Fix grub_machine_fini bitrot.

View file

@ -668,7 +668,7 @@ if test x"$platform" = xefi ; then
fi fi
if test x"$efiemu_excuse" = x ; then if test x"$efiemu_excuse" = x ; then
AC_CACHE_CHECK([whether options required for efiemu work], grub_cv_cc_efiemu, [ AC_CACHE_CHECK([whether options required for efiemu work], grub_cv_cc_efiemu, [
CFLAGS="$TARGET_CFLAGS -march=core2 -m64 -mcmodel=large -mno-red-zone -nostdlib" CFLAGS="-m64 -nostdlib -O2 -mcmodel=large -mno-red-zone"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_cc_efiemu=yes], [grub_cv_cc_efiemu=yes],
[grub_cv_cc_efiemu=no]) [grub_cv_cc_efiemu=no])