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:
parent
26de2bcdf2
commit
26586d9875
2 changed files with 11 additions and 1 deletions
|
@ -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
5
aclocal.m4
vendored
|
@ -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])
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue