summaryrefslogtreecommitdiff
path: root/lang/php72
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2018-07-30 07:17:15 +0000
committermanu <manu@pkgsrc.org>2018-07-30 07:17:15 +0000
commitf3e2264d50373bc9b5a19b10a84743e535b75697 (patch)
tree586d13462a406dea0373bffb0cdc55e4b166c856 /lang/php72
parent6c17596905f10fb375be71390e852505b43b03c7 (diff)
downloadpkgsrc-f3e2264d50373bc9b5a19b10a84743e535b75697.tar.gz
Fix PHP buidl on i386
The --disable-gcc-global-regs fix is not enough, we really need GCC 6 to avoid php crashing during www/ap-ph build.
Diffstat (limited to 'lang/php72')
-rw-r--r--lang/php72/Makefile.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/php72/Makefile.php b/lang/php72/Makefile.php
index becfa62d53b..e060bc6d758 100644
--- a/lang/php72/Makefile.php
+++ b/lang/php72/Makefile.php
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile.php,v 1.6 2018/07/18 07:33:12 manu Exp $
+# $NetBSD: Makefile.php,v 1.7 2018/07/30 07:17:16 manu Exp $
# used by lang/php72/Makefile
# used by www/ap-php/Makefile
# used by www/php-fpm/Makefile
+# With --disable-gcc-global-regs, works around
+# https://bugs.php.net/bug.php?id=74527
+.if ${MACHINE_ARCH} == "i386"
+GCC_REQD+= 6.4
+.endif
+
# the binary actually needs full dep on PCRE
BUILDLINK_DEPMETHOD.pcre= full