diff options
-rw-r--r-- | meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch | 19 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/php/php_7.4.4.bb | 5 |
2 files changed, 13 insertions, 11 deletions
diff --git a/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch b/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch index ee0d5edcdb..1f3e683a0f 100644 --- a/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch +++ b/meta-oe/recipes-devtools/php/php/0001-opcache-config.m4-enable-opcache.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | opcache/config.m4: enable opcache | 1 | From a74b42098aededd296ec6a3cd4cf5a17e59d6f29 Mon Sep 17 00:00:00 2001 |
2 | From: Claude Bing <cbing@cybernetics.com> | ||
3 | Date: Fri, 8 May 2020 10:15:32 -0400 | ||
4 | Subject: [PATCH] opcache/config.m4: enable opcache | ||
2 | 5 | ||
3 | We can't use AC_TRY_RUN to run programs in a cross compile environment. | 6 | We can't use AC_TRY_RUN to run programs in a cross compile environment. |
4 | Set | 7 | Set |
@@ -12,15 +15,18 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | |||
12 | 15 | ||
13 | update patch to version 7.4.4 | 16 | update patch to version 7.4.4 |
14 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 17 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
18 | |||
19 | fix issue linking with librt | ||
20 | Signed-off-by: Claude Bing <cbing@cybernetics.com> | ||
15 | --- | 21 | --- |
16 | ext/opcache/config.m4 | 194 +------------------------------------------------- | 22 | ext/opcache/config.m4 | 195 +----------------------------------------- |
17 | 1 file changed, 3 insertions(+), 191 deletions(-) | 23 | 1 file changed, 4 insertions(+), 191 deletions(-) |
18 | 24 | ||
19 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 | 25 | diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 |
20 | index 6c40caf..84ddf1e 100644 | 26 | index 6c40cafc1c..6569aa9e1c 100644 |
21 | --- a/ext/opcache/config.m4 | 27 | --- a/ext/opcache/config.m4 |
22 | +++ b/ext/opcache/config.m4 | 28 | +++ b/ext/opcache/config.m4 |
23 | @@ -23,201 +23,13 @@ if test "$PHP_OPCACHE" != "no"; then | 29 | @@ -23,201 +23,14 @@ if test "$PHP_OPCACHE" != "no"; then |
24 | AC_CHECK_FUNCS([mprotect]) | 30 | AC_CHECK_FUNCS([mprotect]) |
25 | 31 | ||
26 | AC_MSG_CHECKING(for sysvipc shared memory support) | 32 | AC_MSG_CHECKING(for sysvipc shared memory support) |
@@ -222,9 +228,10 @@ index 6c40caf..84ddf1e 100644 | |||
222 | - AC_MSG_RESULT([no]) | 228 | - AC_MSG_RESULT([no]) |
223 | - ]) | 229 | - ]) |
224 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) | 230 | + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) |
231 | + PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)]) | ||
225 | 232 | ||
226 | PHP_NEW_EXTENSION(opcache, | 233 | PHP_NEW_EXTENSION(opcache, |
227 | ZendAccelerator.c \ | 234 | ZendAccelerator.c \ |
228 | -- | 235 | -- |
229 | 2.7.4 | 236 | 2.17.1 |
230 | 237 | ||
diff --git a/meta-oe/recipes-devtools/php/php_7.4.4.bb b/meta-oe/recipes-devtools/php/php_7.4.4.bb index 07c3115060..1d93902e72 100644 --- a/meta-oe/recipes-devtools/php/php_7.4.4.bb +++ b/meta-oe/recipes-devtools/php/php_7.4.4.bb | |||
@@ -110,11 +110,6 @@ export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" | |||
110 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" | 110 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" |
111 | CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2" | 111 | CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2" |
112 | 112 | ||
113 | # link against librt (libc) if opcache is specified in order to avoid the | ||
114 | # following error: | ||
115 | # 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 | ||
116 | LDFLAGS += "${@ " -lrt " if bb.utils.contains('PACKAGECONFIG', 'opcache', 'true', 'false', d) else "" }" | ||
117 | |||
118 | # Adding these flags enables dynamic library support, which is disabled by | 113 | # Adding these flags enables dynamic library support, which is disabled by |
119 | # default when cross compiling | 114 | # default when cross compiling |
120 | # See https://bugs.php.net/bug.php?id=60109 | 115 | # See https://bugs.php.net/bug.php?id=60109 |