2020-12-06 21:35:18 +01:00
|
|
|
diff -uNr php-8.0.0.orig/ext/opcache/config.m4 php-8.0.0/ext/opcache/config.m4
|
|
|
|
--- php-8.0.0.orig/ext/opcache/config.m4 2020-11-24 22:34:03.000000000 +0530
|
|
|
|
+++ php-8.0.0/ext/opcache/config.m4 2020-12-06 21:26:14.225669677 +0530
|
|
|
|
@@ -219,7 +219,9 @@
|
2018-03-11 00:50:15 +01:00
|
|
|
}
|
2019-01-27 23:41:17 +01:00
|
|
|
]])],[dnl
|
2018-03-11 00:50:15 +01:00
|
|
|
AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support])
|
2020-12-06 21:35:18 +01:00
|
|
|
- have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],[have_shm_mmap_anon=no])
|
|
|
|
+ have_shm_mmap_anon=yes],[have_shm_mmap_anon=no],
|
2018-03-11 00:50:15 +01:00
|
|
|
+ AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support])
|
2020-12-06 21:35:18 +01:00
|
|
|
+ have_shm_mmap_anon=yes)
|
2021-05-04 07:11:28 +02:00
|
|
|
AC_MSG_RESULT([$have_shm_mmap_anon])
|
2018-03-11 00:50:15 +01:00
|
|
|
|
2020-12-06 21:35:18 +01:00
|
|
|
PHP_CHECK_FUNC_LIB(shm_open, rt, root)
|
|
|
|
@@ -336,6 +338,9 @@
|
|
|
|
$ZEND_JIT_SRC,
|
2019-06-24 22:46:15 +02:00
|
|
|
shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,,yes)
|
|
|
|
|
|
|
|
+ OPCACHE_SHARED_LIBADD=-lpcre2-8
|
|
|
|
+ PHP_SUBST(OPCACHE_SHARED_LIBADD)
|
|
|
|
+
|
|
|
|
PHP_ADD_BUILD_DIR([$ext_builddir/Optimizer], 1)
|
|
|
|
PHP_ADD_EXTENSION_DEP(opcache, pcre)
|
2020-12-06 21:35:18 +01:00
|
|
|
|