summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-06 17:01:40 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-11-06 17:01:40 +0000
commit70d1ffbf6f2e831aa6a3ff3d46e917ba3842048b (patch)
tree31c5010cb7e91b6bf5913fc2573edcd0d4947bdb
parentnet/libcoap: update to 4.2.1 (diff)
Mk/Uses/php.mk: fix build of all PHP modules when using php74 on GCC architectures
php74 introduced C11 requirement and all optional PHP modules available in the ports tree need to use C11 compiler. PR: 240883 Approved by: portmgr
-rw-r--r--Mk/Uses/php.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk
index 2f3b714a0088..b04f90022d12 100644
--- a/Mk/Uses/php.mk
+++ b/Mk/Uses/php.mk
@@ -130,7 +130,7 @@ IGNORE= does not work with PHP versions "${IGNORE_WITH_PHP}" and "${_INSTALLED_P
PHP_VER?= ${PHP_DEFAULT:S/.//}
. endif # .if exists(${PHPBASE}/etc/php.conf)
-# Use the "default" php version as th first version for flavors, so that it
+# Use the "default" php version as the first version for flavors, so that it
# gets to be the default flavor.
_ALL_FLAVOR_VERSIONS= ${PHP_VER} ${_ALL_PHP_VERSIONS:N${PHP_VER}}
@@ -159,6 +159,10 @@ FLAVOR= ${FLAVORS:[1]}
. endif
. endif
+.if ${PHP_VER} == 74 && (${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64)
+USE_GCC= yes
+.endif
+
# This variable is for dependencies lines, so you write:
# ${PHP_PKGNAMEPREFIX}foo:devel/php-foo@${PHP_FLAVOR}
PHP_FLAVOR= php${PHP_VER}