Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2019 17:01:40 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r516904 - head/Mk/Uses
Message-ID:  <201911061701.xA6H1ehw051497@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911061701.xA6H1ehw051497>