From aaa559eaca14583b8e7851d1fa7e7231de140f6d Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Wed, 4 Sep 2024 22:33:01 +0900 Subject: [PATCH] Add `clang` to host compiler candidates in cross building. * builds/unix/configure.raw: In cross building, `clang` is tried if there is no `gcc`, nor `cc`. --- builds/unix/configure.raw | 1 + 1 file changed, 1 insertion(+) diff --git a/builds/unix/configure.raw b/builds/unix/configure.raw index 0aa5e6558..46d957245 100644 --- a/builds/unix/configure.raw +++ b/builds/unix/configure.raw @@ -46,6 +46,7 @@ if test ${cross_compiling} = yes; then AC_CHECK_PROG(CC_BUILD, ${build}-gcc, ${build}-gcc) test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, gcc, gcc) test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, cc, cc, , , /usr/ucb/cc) + test -z "${CC_BUILD}" && AC_CHECK_PROG(CC_BUILD, clang, clang) test -z "${CC_BUILD}" && AC_MSG_ERROR([cannot find native C compiler]) AC_MSG_CHECKING([for suffix of native executables])