php: fix cross build

Dynamic loading of extensions was disabled,
because configure cannot determine if dlopen
is available (executes test program).
Override this test by using values taken
from a native build.
This commit is contained in:
newbluemoon 2020-05-16 21:38:01 +02:00 committed by Johannes
parent c054199554
commit 432e42589f

View file

@ -1,7 +1,7 @@
# Template file for 'php'
pkgname=php
version=7.4.6
revision=1
revision=2
hostmakedepends="bison pkg-config apache-devel"
makedepends="apache-devel enchant-devel freetds-devel freetype-devel gdbm-devel
gmp-devel libcurl-devel libjpeg-turbo-devel libmysqlclient-devel
@ -23,6 +23,7 @@ replaces="php-mcrypt<7.2.0"
if [ -n "$CROSS_BUILD" ]; then
# php-pear needs php to build
hostmakedepends+=" php"
CFLAGS+=" -DHAVE_LIBDL -DHAVE_DLOPEN -DHAVE_DLSYM"
fi
do_build() {