mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
php: update fix for opcache link issue in 7.4.4
The source of the issue is the update for PHP 7.4 support in 0001-opcache-config.m4-enable-opcache.patch (commit7cc7a9ec). Instead of working around the issue in the recipe file, update the patch to restore the call to PHP_ADD_LIBRARY(). Signed-off-by: Claude Bing <cbing@cybernetics.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit3cfd16be4e) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
5c91e3aa46
commit
a6c9ad397b
@@ -110,11 +110,6 @@ export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}"
|
||||
export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php"
|
||||
CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2"
|
||||
|
||||
# link against librt (libc) if opcache is specified in order to avoid the
|
||||
# following error:
|
||||
# Failed loading /usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so: /usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so: undefined symbol: shm_unlink
|
||||
LDFLAGS += "${@ " -lrt " if bb.utils.contains('PACKAGECONFIG', 'opcache', 'true', 'false', d) else "" }"
|
||||
|
||||
# Adding these flags enables dynamic library support, which is disabled by
|
||||
# default when cross compiling
|
||||
# See https://bugs.php.net/bug.php?id=60109
|
||||
|
||||
Reference in New Issue
Block a user