diff --git a/ChangeLog b/ChangeLog index f48ffefa4..c003f695d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-11-02 Vladimir Serbinenko + + * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386. + 2013-11-02 Vladimir Serbinenko * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call diff --git a/configure.ac b/configure.ac index b430135b5..46bb8415f 100644 --- a/configure.ac +++ b/configure.ac @@ -494,6 +494,10 @@ if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$p TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow" fi +if test "x$target_cpu" = xi386 && test "x$platform" != xemu; then + TARGET_CFLAGS="$TARGET_CFLAGS -march=i386" +fi + # By default, GCC 4.4 generates .eh_frame sections containing unwind # information in some cases where it previously did not. GRUB doesn't need # these and they just use up vital space. Restore the old compiler