1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Set BUILD_CC for phpize

This commit is contained in:
Joe Watkins
2021-06-13 12:57:31 +02:00
parent 9245423c77
commit c29226581e
2 changed files with 12 additions and 0 deletions

View File

@@ -170,6 +170,14 @@ CXXFLAGS_CLEAN='$(CXXFLAGS)'
test "$prefix" = "NONE" && prefix="/usr/local"
test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
if test "$cross_compiling" = yes ; then
AC_MSG_CHECKING(for native build C compiler)
AC_CHECK_PROGS(BUILD_CC, [gcc clang c99 c89 cc cl],none)
AC_MSG_RESULT($BUILD_CC)
else
BUILD_CC=$CC
fi
PHP_SUBST(PHP_MODULES)
PHP_SUBST(PHP_ZEND_EX)
@@ -202,6 +210,7 @@ PHP_SUBST(SHARED_LIBTOOL)
PHP_SUBST(LIBTOOL)
PHP_SUBST(SHELL)
PHP_SUBST(INSTALL_HEADERS)
PHP_SUBST(BUILD_CC)
PHP_GEN_BUILD_DIRS
PHP_GEN_GLOBAL_MAKEFILE