001-cross-compile-fix.patch 568 B

123456789101112131415161718192021222324
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -74,6 +74,21 @@ AM_SILENT_RULES
  4. AC_CANONICAL_HOST
  5. AB_INIT
  6. +case "${host}" in
  7. + x86_64-openwrt-linux-gnu|i?86-openwrt-linux-gnu)
  8. + host=$(echo $host | sed 's/openwrt/pc/g')
  9. + ;;
  10. + arm-openwrt-linux-gnu|armeb-openwrt-linux-gnu)
  11. + host=arm-unknown-linux-gnueabi
  12. + ;;
  13. + mips64-openwrt-linux-gnu)
  14. + host=mips64el-unknown-linux-gnuabi64
  15. + ;;
  16. + *)
  17. + host=$(echo $host | sed 's/openwrt/unknown/g')
  18. + ;;
  19. +esac
  20. +
  21. # Checks for programs.
  22. AC_PROG_CC
  23. AM_PROG_CC_C_O