]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-06-11 Pavel Roskin <proski@gnu.org>
authorproski <proski@localhost>
Thu, 11 Jun 2009 20:45:58 +0000 (20:45 +0000)
committerproski <proski@localhost>
Thu, 11 Jun 2009 20:45:58 +0000 (20:45 +0000)
* configure.ac: Always define ___main if using -nostdlib.  This
fixes tests on Cygwin.

ChangeLog
configure.ac

index ed7c06d5c48e5f54a0f5432ebd421b34aaf8e71d..aa2299c8f307381fe90828ab390d61fb70d01ee8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,15 @@
+2009-06-11  Pavel Roskin  <proski@gnu.org>
+
+       * configure.ac: Always define ___main if using -nostdlib.  This
+       fixes tests on Cygwin.
+
 2009-06-11  Giuseppe Caizzone  <acaizzo@gmail.com>
 
        UDF fix
 
-       * fs/udf.c (grub_udf_read_block): handle the fact that ad->length 
+       * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
        is in bytes and not in blocks
-       
+
 2009-06-11  Pavel Roskin  <proski@gnu.org>
 
        * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
index ca8c265d193d03f37d4b80e3c28edb76ad00ba3c..b0f7bb7280cb29d35619cd00caee010d14982493 100644 (file)
@@ -396,7 +396,7 @@ AC_SUBST(TARGET_LDFLAGS)
 
 # Set them to their new values for the tests below.
 CC="$TARGET_CC"
-CFLAGS="$TARGET_CFLAGS -nostdlib"
+CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
 CPPFLAGS="$TARGET_CPPFLAGS"
 LDFLAGS="$TARGET_LDFLAGS"