Set BUILD_CC for phpize

This commit is contained in:
Joe Watkins 2021-06-13 12:57:31 +02:00
parent 9245423c77
commit c29226581e
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
2 changed files with 12 additions and 0 deletions

3
NEWS
View file

@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.1.0alpha2
- Opcache:
. Fixed bug #81133 (building opcache with phpize fails). (krakjoe)
- PDO OCI:
. Fixed bug #77120 (Support 'success with info' at connection).
(Sergei Morozov)

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