php: Support opcache cross compilation
Opcache extension configuration tries to detect some shared memory function by compiling and executing test programs at compile time. This cannot work when cross compiling. To workaround that add proper defines to use those functions anyway if we are cross compiling. That fixes the following error when using opcache extension on arm: Fatal Error Unable to allocate shared memory segment of 134217728 bytes
This commit is contained in:
parent
ee97c9f14a
commit
2984425c32
1 changed files with 8 additions and 1 deletions
|
@ -23,7 +23,14 @@ 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"
|
||||
CFLAGS+=" -DHAVE_LIBDL
|
||||
-DHAVE_DLOPEN
|
||||
-DHAVE_DLSYM
|
||||
-DHAVE_SHM_IPC
|
||||
-DHAVE_SHM_MMAP_ANON
|
||||
-DHAVE_SHM_MMAP_ZERO
|
||||
-DHAVE_SHM_MMAP_POSIX
|
||||
-DHAVE_SHM_MMAP_FILE"
|
||||
fi
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in a new issue