svn commit: r516904 - head/Mk/Uses

Piotr Kubaj pkubaj at FreeBSD.org
Wed Nov 6 17:01:41 UTC 2019


Author: pkubaj
Date: Wed Nov  6 17:01:40 2019
New Revision: 516904
URL: https://svnweb.freebsd.org/changeset/ports/516904

Log:
  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

Modified:
  head/Mk/Uses/php.mk

Modified: head/Mk/Uses/php.mk
==============================================================================
--- head/Mk/Uses/php.mk	Wed Nov  6 16:56:19 2019	(r516903)
+++ head/Mk/Uses/php.mk	Wed Nov  6 17:01:40 2019	(r516904)
@@ -130,7 +130,7 @@ IGNORE=	does not work with PHP versions "${IGNORE_WITH
 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}}
 
@@ -158,6 +158,10 @@ FLAVORS:=	${_ALL_FLAVOR_VERSIONS:S/^/php/}
 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}


More information about the svn-ports-all mailing list