diff --git a/ChangeLog b/ChangeLog index 94109604a..2d872b60b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-06-18 Vladimir Serbinenko + + Fix build with Apple's toolchain. Part 2 + + * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and + a fake start + 2009-06-18 Vladimir Serbinenko Fix build with Apple's toolchain. Part 1 diff --git a/aclocal.m4 b/aclocal.m4 index b421c72a3..bde935dc9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2,7 +2,10 @@ dnl Check whether target compiler is working AC_DEFUN(grub_PROG_TARGET_CC, [AC_MSG_CHECKING([whether target compiler is working]) AC_CACHE_VAL(grub_cv_prog_target_cc, -[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])], +[AC_LINK_IFELSE([AC_LANG_PROGRAM([[ +asm (".globl start; start: nop"); +int main (void); +]], [[]])], [grub_cv_prog_target_cc=yes], [grub_cv_prog_target_cc=no]) ])