]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-07-17 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Fri, 18 Jul 2008 03:21:47 +0000 (03:21 +0000)
committerproski <proski@localhost>
Fri, 18 Jul 2008 03:21:47 +0000 (03:21 +0000)
* configure.ac: Use -m32 or -m64 regardless of whether we had to
change target_cpu.  The compiler default can mismatch target_cpu
in any case.

ChangeLog
configure
configure.ac

index 11eac21b4e6f5423b3594f8fd7df4cb0b7814109..ceb29f0d74914cb4e359422e75f29aa5c5702ce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-07-17  Pavel Roskin  <proski@gnu.org>
 
+       * configure.ac: Use -m32 or -m64 regardless of whether we had to
+       change target_cpu.  The compiler default can mismatch target_cpu
+       in any case.
+
        * disk/efi/efidisk.c: Fix format warnings on x86_64.
        * kern/efi/efi.c: Likewise.
 
index ede2168d20c60dbae9fe739629f5ea4c90a713d1..046c23e13ae49be709a7b20dedbb4568b1cad107 100644 (file)
--- a/configure
+++ b/configure
@@ -1962,15 +1962,15 @@ fi
 if test -z "$target_alias"; then
   case "$target_cpu"-"$platform" in
     x86_64-efi) ;;
-    x86_64-*) target_cpu=i386 target_m32=1 ;;
-    powerpc64-ieee1275) target_cpu=powerpc target_m32=1 ;;
+    x86_64-*) target_cpu=i386 ;;
+    powerpc64-ieee1275) target_cpu=powerpc ;;
   esac
 fi
 
 # Check if the platform is supported, make final adjustments.
 case "$target_cpu"-"$platform" in
   i386-efi) ;;
-  x86_64-efi) target_m64=1 ;;
+  x86_64-efi) ;;
   i386-pc) ;;
   i386-coreboot) ;;
   i386-linuxbios) platform=coreboot ;;
@@ -1982,6 +1982,11 @@ echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$t
    { (exit 1); exit 1; }; } ;;
 esac
 
+case "$target_cpu" in
+  i386 | powerpc) target_m32=1 ;;
+  x86_64 | sparc64) target_m64=1 ;;
+esac
+
 
 
 
index 4d47f64cd0514983e16d7b68dfa959284fb54cc8..1d8bd08f037d5bac3d0df46be249655230eb15ee 100644 (file)
@@ -76,15 +76,15 @@ fi
 if test -z "$target_alias"; then
   case "$target_cpu"-"$platform" in
     x86_64-efi) ;;
-    x86_64-*) target_cpu=i386 target_m32=1 ;;
-    powerpc64-ieee1275) target_cpu=powerpc target_m32=1 ;;
+    x86_64-*) target_cpu=i386 ;;
+    powerpc64-ieee1275) target_cpu=powerpc ;;
   esac
 fi
 
 # Check if the platform is supported, make final adjustments.
 case "$target_cpu"-"$platform" in
   i386-efi) ;;
-  x86_64-efi) target_m64=1 ;;
+  x86_64-efi) ;;
   i386-pc) ;;
   i386-coreboot) ;;
   i386-linuxbios) platform=coreboot ;;
@@ -94,6 +94,11 @@ 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
+
 AC_SUBST(target_cpu)
 AC_SUBST(platform)