diff options
author | manu <manu@pkgsrc.org> | 2018-12-07 01:54:52 +0000 |
---|---|---|
committer | manu <manu@pkgsrc.org> | 2018-12-07 01:54:52 +0000 |
commit | 2bdf08b8871a165289891548c3b58fd008505510 (patch) | |
tree | c0da96f1f72658561e48e650bd2365f0ddbac469 /lang/php72 | |
parent | 6f24f2ca46764411b1144440bdab223a4ede99ff (diff) | |
download | pkgsrc-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.php | 5 |
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} |