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:
parent
c054199554
commit
432e42589f
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue