0001-workaround-ac-run-ifelse.patch 888 B

1234567891011121314151617181920212223
  1. build/ac-macros/macosx.m4: workaround AC_RUN_IFELSE
  2. The SVN_LIB_MACHO_ITERATE macro contains an AC_RUN_IFELSE test that
  3. doesn't work when cross-compiling. However, this macro is related to
  4. testing Mac OS X APIs, so in the context of Buildroot, we don't care,
  5. and the test program is not even going to build. So we simply
  6. workaround this by turning the test into an AC_COMPILE_IFELSE.
  7. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  8. Index: b/build/ac-macros/macosx.m4
  9. ===================================================================
  10. --- a/build/ac-macros/macosx.m4
  11. +++ b/build/ac-macros/macosx.m4
  12. @@ -24,7 +24,7 @@
  13. AC_DEFUN(SVN_LIB_MACHO_ITERATE,
  14. [
  15. AC_MSG_CHECKING([for Mach-O dynamic module iteration functions])
  16. - AC_RUN_IFELSE([AC_LANG_PROGRAM([[
  17. + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
  18. #include <mach-o/dyld.h>
  19. #include <mach-o/loader.h>
  20. ]],[[