From 26586d9875d9086b5545005f306d6b880cf77ec6 Mon Sep 17 00:00:00 2001 From: phcoder Date: Thu, 18 Jun 2009 14:25:51 +0000 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ aclocal.m4 | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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]) ])