summaryrefslogtreecommitdiff
path: root/lang/php72
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2018-12-07 01:54:52 +0000
committermanu <manu@pkgsrc.org>2018-12-07 01:54:52 +0000
commit2bdf08b8871a165289891548c3b58fd008505510 (patch)
treec0da96f1f72658561e48e650bd2365f0ddbac469 /lang/php72
parent6f24f2ca46764411b1144440bdab223a4ede99ff (diff)
downloadpkgsrc-2bdf08b8871a165289891548c3b58fd008505510.tar.gz
Link PHP with shared libsqlite3 isntead of built-in
We used to build PHP with its built-in, statically linked libsqlite3. When used in an executable with dynamically looaded modules such as Apache, some module may load a shared libsqlite3, which has the same symbols as PHP's built-in libsqlite3. This causes unreliable cross-version calls and is source of crashes. The fix is to disable PHP's built-in libslite3 and always use an external, shared libsqlite3.
Diffstat (limited to 'lang/php72')
-rw-r--r--lang/php72/Makefile.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/php72/Makefile.php b/lang/php72/Makefile.php
index 7ea0b857a31..d72db7677ab 100644
--- a/lang/php72/Makefile.php
+++ b/lang/php72/Makefile.php
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.php,v 1.8 2018/07/31 01:17:56 maya Exp $
+# $NetBSD: Makefile.php,v 1.9 2018/12/07 01:54:53 manu Exp $
# used by lang/php72/Makefile
# used by www/ap-php/Makefile
# used by www/php-fpm/Makefile
@@ -49,6 +49,9 @@ CONFIGURE_ARGS+= --enable-xml
CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX}
.include "../../textproc/libxml2/buildlink3.mk"
+CONFIGURE_ARGS+= --with-sqlite3=shared
+.include "../../databases/sqlite3/buildlink3.mk"
+
CONFIGURE_ARGS+= --with-pcre-regex=${BUILDLINK_PREFIX.pcre}
PKG_OPTIONS_VAR= PKG_OPTIONS.${PHP_PKG_PREFIX}