mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 17:42:10 +00:00
43 lines
1.3 KiB
Diff
43 lines
1.3 KiB
Diff
From 9bb316c41a69935ee2072626467241889594bed4 Mon Sep 17 00:00:00 2001
|
|
From: Adam Duskett <aduskett@gmail.com>
|
|
Date: Mon, 28 Jun 2021 11:12:36 -0700
|
|
Subject: [PATCH] allow opcache cross-compiling
|
|
|
|
Remove the check at the end of ext/opcache/config.m4 that prevents opcache from
|
|
being enabled in a cross-compiled environment. We pass the following as a
|
|
CFLAGS when opcache is enabled:
|
|
-DHAVE_SHM_IPC
|
|
-DHAVE_SHM_MMAP_ANON
|
|
-DHAVE_SHM_MMAP_ZERO
|
|
-DHAVE_SHM_MMAP_POSIX
|
|
-DHAVE_SHM_MMAP_FILE
|
|
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
[Bernd: rebased for 8.4.13]
|
|
---
|
|
ext/opcache/config.m4 | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
|
|
index 5492fd92..10c150ff 100644
|
|
--- a/ext/opcache/config.m4
|
|
+++ b/ext/opcache/config.m4
|
|
@@ -346,13 +346,6 @@
|
|
PHP_ADD_EXTENSION_DEP(opcache, date)
|
|
PHP_ADD_EXTENSION_DEP(opcache, pcre)
|
|
|
|
- if test "$php_cv_shm_ipc" != "yes" && test "$php_cv_shm_mmap_posix" != "yes" && test "$php_cv_shm_mmap_anon" != "yes"; then
|
|
- AC_MSG_FAILURE(m4_text_wrap([
|
|
- No supported shared memory caching support was found when configuring
|
|
- opcache.
|
|
- ]))
|
|
- fi
|
|
-
|
|
AS_VAR_IF([PHP_OPCACHE_JIT], [yes], [
|
|
PHP_ADD_BUILD_DIR([
|
|
$ext_builddir/jit
|
|
--
|
|
2.31.1
|
|
|