2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>

Fix build with Apple's toolchain. Part 2

	* aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
	a fake start
This commit is contained in:
phcoder 2009-06-18 14:25:51 +00:00
parent 26de2bcdf2
commit 26586d9875
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
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 <phcoder@gmail.com> 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
Fix build with Apple's toolchain. Part 1 Fix build with Apple's toolchain. Part 1

5
aclocal.m4 vendored
View file

@ -2,7 +2,10 @@ dnl Check whether target compiler is working
AC_DEFUN(grub_PROG_TARGET_CC, AC_DEFUN(grub_PROG_TARGET_CC,
[AC_MSG_CHECKING([whether target compiler is working]) [AC_MSG_CHECKING([whether target compiler is working])
AC_CACHE_VAL(grub_cv_prog_target_cc, 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=yes],
[grub_cv_prog_target_cc=no]) [grub_cv_prog_target_cc=no])
]) ])