php: fix configure issues

Run buildconf for host & target builds in a separate steps.
This commit is contained in:
Leonid Pliushch 2020-04-14 23:57:16 +03:00
parent c85f419708
commit e46792aaa2

View File

@ -49,8 +49,10 @@ ac_cv_func_res_nsearch=no
--sbindir=$TERMUX_PREFIX/bin --sbindir=$TERMUX_PREFIX/bin
" "
termux_step_post_extract_package() { termux_step_host_build() {
./buildconf --force ./buildconf --force
"$TERMUX_PKG_SRCDIR/configure" ${TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS}
make -j "$TERMUX_MAKE_PROCESSES"
} }
termux_step_pre_configure() { termux_step_pre_configure() {
@ -62,8 +64,8 @@ termux_step_pre_configure() {
CFLAGS+=" -march=armv8-a+crc" CFLAGS+=" -march=armv8-a+crc"
CXXFLAGS+=" -march=armv8-a+crc" CXXFLAGS+=" -march=armv8-a+crc"
fi fi
# Run autoconf since we have patched config.m4 files. # Regenerate configure again since we have patched config.m4 files.
autoconf ./buildconf --force
export EXTENSION_DIR=$TERMUX_PREFIX/lib/php export EXTENSION_DIR=$TERMUX_PREFIX/lib/php