]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2003-01-05 Yoshinori K. Okuji <okuji@enbug.org>
authorokuji <okuji@localhost>
Sat, 4 Jan 2003 23:22:42 +0000 (23:22 +0000)
committerokuji <okuji@localhost>
Sat, 4 Jan 2003 23:22:42 +0000 (23:22 +0000)
* configure.in (CFLAGS): When the default CFLAGS is used,
eliminate -O2 and -g from CFLAGS, because Autoconf may
automatically set CFLAGS to them.

ChangeLog
configure
configure.in
stage2/fsys_fat.c

index 7e83dd8d1f2930cdc6740cdfb4ea01a8936212c5..b2474813f5c83fa110cf89cc5da482ae16c6a5c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-05  Yoshinori K. Okuji  <okuji@enbug.org>
+
+       * configure.in (CFLAGS): When the default CFLAGS is used,
+       eliminate -O2 and -g from CFLAGS, because Autoconf may
+       automatically set CFLAGS to them.
+
 2003-01-02  Yoshinori K. Okuji  <okuji@enbug.org>
 
        From Jeremy Katz:
index 53b59cd8f9d449dc19ea300976cf29d1df9be10f..e1c0b1662953c24c846965fa456ddac34de5c93f 100644 (file)
--- a/configure
+++ b/configure
@@ -2917,7 +2917,8 @@ fi
 # optimization flags
 if test "x$ac_cv_c_compiler_gnu" = xyes; then
   if test "x$default_CFLAGS" = xyes; then
-    CFLAGS="$CFLAGS -g"
+    # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
+    CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]/g'` -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 83d1634eba88b5b05dd641babaf0e17557e48420..767f0acc51b1045e0b51dcc84f19021ef1a99955 100644 (file)
@@ -77,7 +77,8 @@ fi
 # optimization flags
 if test "x$ac_cv_prog_gcc" = xyes; then
   if test "x$default_CFLAGS" = xyes; then
-    CFLAGS="$CFLAGS -g"
+    # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
+    CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[[0-9]]/g'` -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 286d4a45fd6cc69025bdfe4394e400e6415d7ded..27eafc29ea648f79463928a228748125722b6e68 100644 (file)
@@ -224,6 +224,9 @@ fat_read (char *buf, int len)
          else if (FAT_SUPER->fat_size == 4)
            next_cluster &= 0xFFFF;
          
+         grub_printf ("%s:%d: next_cluster=%d\n",
+                      __FILE__, __LINE__, next_cluster);
+         
          if (next_cluster >= FAT_SUPER->clust_eof_marker)
            return ret;
          if (next_cluster < 2 || next_cluster >= FAT_SUPER->num_clust)