From dd614590c9b41286666dd4cd36396f1abd2832e9 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 2 Nov 2013 22:46:01 +0100 Subject: [PATCH] * configure.ac: Don't add -m32/-m64 on emu. --- ChangeLog | 4 ++++ configure.ac | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 53a1818b4..ebc6726ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-11-02 Vladimir Serbinenko + + * 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 diff --git a/configure.ac b/configure.ac index 83ab04412..16768804d 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ;;