]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Don't add -m32/-m64 on emu.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 2 Nov 2013 21:46:01 +0000 (22:46 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 2 Nov 2013 21:46:01 +0000 (22:46 +0100)
ChangeLog
configure.ac

index 53a1818b4dde269d2dd59412a666be7ddf52dba9..ebc6726ad610858b9e49b1e5b78a66ce9f3d152e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Don't add -m32/-m64 on emu.
+
 2013-11-02  neil
 
        * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
index 83ab044124f9a8cab36b081dde813e4343ed5c90..16768804da8ea7a0cae1d6153a6348e2f68e1189 100644 (file)
@@ -163,10 +163,12 @@ case "$target_cpu"-"$platform" in
   *) AC_MSG_ERROR([platform "$platform" is not supported for target CPU "$target_cpu"]) ;;
 esac
 
-case "$target_cpu" in
-  i386 | powerpc) target_m32=1 ;;
-  x86_64 | sparc64) target_m64=1 ;;
-esac
+if [ x$platform != xemu ]; then
+   case "$target_cpu" in
+       i386 | powerpc) target_m32=1 ;;
+       x86_64 | sparc64) target_m64=1 ;;
+   esac
+fi
 
 case "$target_os" in
   windows* | mingw32*) target_os=cygwin ;;