From 95a1d26f49538d1129bffceed25e282742a7dac2 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 29 Nov 2019 15:02:14 +0000 Subject: Mk/bsd.port.mk: detect powerpc64 abi We'll have a new abi on ppc64 soon (ELFv2) which is incompatible with the ELFv1 abi. We need to detect the abi on which we build stuff. Submitted by: mikael_urankar@gmail.com Approved by: portmgr (earlier version) Differential Revision: https://reviews.freebsd.org/D22039 --- Mk/Uses/php.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mk/Uses/php.mk') diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index b04f90022d12..132a46cd77d5 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -159,7 +159,7 @@ FLAVOR= ${FLAVORS:[1]} . endif . endif -.if ${PHP_VER} == 74 && (${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64) +.if ${PHP_VER} == 74 && (${ARCH:Mmips*} || (${ARCH:Mpowerpc*} && !exists(/usr/bin/clang)) || ${ARCH} == sparc64) USE_GCC= yes .endif -- cgit v1.2.3