]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Thu, 2 Jan 2003 14:51:37 +0000 (14:51 +0000)
committerokuji <okuji@localhost>
Thu, 2 Jan 2003 14:51:37 +0000 (14:51 +0000)
From Jeremy Katz:
* configure.in: Support building on x86_64 with gcc -m32.

ChangeLog
configure
configure.in
docs/grub-install.8
docs/grub-md5-crypt.8
docs/grub-terminfo.8
docs/grub.8
docs/mbchk.1

index 14e71db907a874c2f62b345f56f9e0d12d6f086a..7e83dd8d1f2930cdc6740cdfb4ea01a8936212c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       From Jeremy Katz:
+       * configure.in: Support building on x86_64 with gcc -m32.
+
 2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
 
        From Jeremy Katz:
index afdb8cacedc2912c58d70ba47fc7cbcb0c5ccf72..53b59cd8f9d449dc19ea300976cf29d1df9be10f 100644 (file)
--- a/configure
+++ b/configure
@@ -1665,6 +1665,7 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
 case "$host_cpu" in
 i[3456]86) host_cpu=i386 ;;
+x86_64) host_cpu=x86_64 ;;
 *) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
 echo "$as_me: error: unsupported CPU type" >&2;}
    { (exit 1); exit 1; }; } ;;
@@ -1752,6 +1753,10 @@ if test "x$CFLAGS" = x; then
   default_CFLAGS=yes
 fi
 
+if test "x$host_cpu" = xx86_64; then
+  CFLAGS="-m32 $CFLAGS"
+fi
+
 #
 # Programs
 #
@@ -2912,7 +2917,7 @@ fi
 # optimization flags
 if test "x$ac_cv_c_compiler_gnu" = xyes; then
   if test "x$default_CFLAGS" = xyes; then
-    CFLAGS="-g"
+    CFLAGS="$CFLAGS -g"
     # If the user specify the directory for binutils, add the option `-B'.
     if test "x$with_binutils" != x; then
       CFLAGS="-B$with_binutils/ $CFLAGS"
index aa79d9b94c20ef48caa123deffbbbb993d7c6eba..83d1634eba88b5b05dd641babaf0e17557e48420 100644 (file)
@@ -21,6 +21,7 @@ AC_CANONICAL_HOST
 
 case "$host_cpu" in
 i[[3456]]86) host_cpu=i386 ;;
+x86_64) host_cpu=x86_64 ;;
 *) AC_MSG_ERROR([unsupported CPU type]) ;;
 esac
 
@@ -44,6 +45,10 @@ if test "x$CFLAGS" = x; then
   default_CFLAGS=yes
 fi
 
+if test "x$host_cpu" = xx86_64; then
+  CFLAGS="-m32 $CFLAGS"
+fi
+
 #
 # Programs
 #
@@ -72,7 +77,7 @@ fi
 # optimization flags
 if test "x$ac_cv_prog_gcc" = xyes; then
   if test "x$default_CFLAGS" = xyes; then
-    CFLAGS="-g"
+    CFLAGS="$CFLAGS -g"
     # If the user specify the directory for binutils, add the option `-B'.
     if test "x$with_binutils" != x; then
       CFLAGS="-B$with_binutils/ $CFLAGS"
index db1ed8292b3e5dcb4a66cb8938d5fb17e7c875b6..c2c24b397159ae6c3fb285d17b6a310bc3a0d5b4 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
-.TH GRUB-INSTALL "8" "December 2002" "grub-install (GNU GRUB 0.93)" FSF
+.TH GRUB-INSTALL "8" "January 2003" "grub-install (GNU GRUB 0.93)" FSF
 .SH NAME
 grub-install \- install GRUB on your drive
 .SH SYNOPSIS
index ea979e9c2c6b90cfbad19fd9f024d5c46fac3c5c..6bfc17bd1b15940270310a452e8aa439c0e6975e 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
-.TH GRUB-MD5-CRYPT "8" "December 2002" "grub-md5-crypt (GNU GRUB )" FSF
+.TH GRUB-MD5-CRYPT "8" "January 2003" "grub-md5-crypt (GNU GRUB )" FSF
 .SH NAME
 grub-md5-crypt \- Encrypt a password in MD5 format
 .SH SYNOPSIS
index 5fd026fa578501a7a3a97f2ce58f98be70a1bbdb..5c8fef3fe4b347f0358f16fc6be2456bf5a472e1 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
-.TH GRUB-TERMINFO "8" "December 2002" "grub-terminfo (GNU GRUB 0.93)" FSF
+.TH GRUB-TERMINFO "8" "January 2003" "grub-terminfo (GNU GRUB 0.93)" FSF
 .SH NAME
 grub-terminfo \- Generate a terminfo command from a terminfo name
 .SH SYNOPSIS
index 0e1cbd96b6347b87ee8a54292baea02b00d5b866..f601c90e8f9b2fbef4e3b63c228610f1d6618a41 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
-.TH GRUB "8" "December 2002" "grub (GNU GRUB 0.93)" FSF
+.TH GRUB "8" "January 2003" "grub (GNU GRUB 0.93)" FSF
 .SH NAME
 grub \- the grub shell
 .SH SYNOPSIS
index a1e90161d1bacee263a8feff3bb5fdefa0398412..0c921a1ec7c9a39d00c67cd54ac50af33569851a 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.23.
-.TH MBCHK "1" "December 2002" "mbchk (GNU GRUB 0.93)" FSF
+.TH MBCHK "1" "January 2003" "mbchk (GNU GRUB 0.93)" FSF
 .SH NAME
 mbchk \- check the format of a Multiboot kernel
 .SH SYNOPSIS