Skip to content

Commit

Permalink
php: Link opcache.so against libpcre2-8
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Jun 24, 2019
1 parent 8e583fd commit 43f4305
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/php/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://php.net
TERMUX_PKG_DESCRIPTION="Server-side, HTML-embedded scripting language"
TERMUX_PKG_LICENSE="PHP-3.0"
TERMUX_PKG_VERSION=7.3.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=fefc8967daa30ebc375b2ab2857f97da94ca81921b722ddac86b29e15c54a164
TERMUX_PKG_SRCURL=https://secure.php.net/distributions/php-${TERMUX_PKG_VERSION}.tar.xz
# Build native php for phar to build (see pear-Makefile.frag.patch):
Expand Down
16 changes: 13 additions & 3 deletions packages/php/ext-opcache-config.m4.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -u -r ../php-7.3.2/ext/opcache/config.m4 ./ext/opcache/config.m4
--- ../php-7.3.2/ext/opcache/config.m4 2019-02-05 13:10:04.000000000 +0000
+++ ./ext/opcache/config.m4 2019-02-09 01:48:59.965492259 +0000
diff -u -r ../php-7.3.6/ext/opcache/config.m4 ./ext/opcache/config.m4
--- ../php-7.3.6/ext/opcache/config.m4 2019-05-28 09:33:00.000000000 +0000
+++ ./ext/opcache/config.m4 2019-06-24 20:40:39.725791000 +0000
@@ -145,7 +145,9 @@
}
]])],[dnl
Expand All @@ -12,3 +12,13 @@ diff -u -r ../php-7.3.2/ext/opcache/config.m4 ./ext/opcache/config.m4
AC_MSG_RESULT([$msg])

AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support)
@@ -379,6 +381,9 @@
Optimizer/zend_dump.c,
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)
fi

0 comments on commit 43f4305

Please sign in to comment.