summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php70/Makefile9
-rw-r--r--lang/php71/Makefile9
2 files changed, 16 insertions, 2 deletions
diff --git a/lang/php70/Makefile b/lang/php70/Makefile
index 82a634fbe8a..394d2c86d08 100644
--- a/lang/php70/Makefile
+++ b/lang/php70/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/06/24 15:27:57 taca Exp $
+# $NetBSD: Makefile,v 1.4.6.1 2017/02/12 21:38:25 spz Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -41,6 +41,13 @@ SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+# segfault generating phar.phar for i386 & SPARC
+# revisit this if builtin PCRE is updated beyond PCRE1 8.38
+# https://bugs.php.net/bug.php?id=73880
+.if ${MACHINE_ARCH} != "x86_64"
+CONFIGURE_ARGS+= --without-pcre-jit
+.endif
+
# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes
diff --git a/lang/php71/Makefile b/lang/php71/Makefile
index 45db3c7a2fe..1b60385f5de 100644
--- a/lang/php71/Makefile
+++ b/lang/php71/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2016/12/10 07:10:53 taca Exp $
+# $NetBSD: Makefile,v 1.5.2.1 2017/02/12 21:38:25 spz Exp $
#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
@@ -41,6 +41,13 @@ SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS+= ${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php
+# segfault generating phar.phar for i386 & SPARC
+# revisit this if builtin PCRE is updated beyond PCRE1 8.38
+# https://bugs.php.net/bug.php?id=73880
+#.if ${MACHINE_ARCH} != "x86_64"
+CONFIGURE_ARGS+= --without-pcre-jit
+#.endif
+
# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED= yes