]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 2 Nov 2013 15:40:25 +0000 (16:40 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 2 Nov 2013 15:40:25 +0000 (16:40 +0100)
ChangeLog
configure.ac

index f48ffefa499df406d3be5cb633d0c2a8e66d2828..c003f695d49186fbeeb6904a80d67f003bb37b0c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
+
 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
index b430135b53352eb6a365a942df347feb80cdabf0..46bb8415f86eded0033e83ee9544ebeae2c93fd5 100644 (file)
@@ -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