svn commit: r538505 - head/math/openlibm

Piotr Kubaj pkubaj at FreeBSD.org
Thu Jun 11 16:34:11 UTC 2020


Author: pkubaj
Date: Thu Jun 11 16:34:10 2020
New Revision: 538505
URL: https://svnweb.freebsd.org/changeset/ports/538505

Log:
  math/openlibm: use GCC on powerpc64
  
  Clang fails to build this port:
  src/s_cpow.c:77:16: error: a parameter list without types is only allowed in a function definition
  __strong_alias(cpowl, cpow);

Modified:
  head/math/openlibm/Makefile

Modified: head/math/openlibm/Makefile
==============================================================================
--- head/math/openlibm/Makefile	Thu Jun 11 16:13:59 2020	(r538504)
+++ head/math/openlibm/Makefile	Thu Jun 11 16:34:10 2020	(r538505)
@@ -19,12 +19,20 @@ BROKEN_armv7=		fails to compile: a parameter list with
 BROKEN_mips=		fails to compile: No rule to make target mips/Make.files
 BROKEN_mips64=		fails to compile: No rule to make target mips64/Make.files
 
-USES=	compiler:c11 gmake
+USES=	gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	JuliaMath
 GH_PROJECT=	openlibm
 
 USE_LDCONFIG=	yes
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler
+.endif
 
 .include <bsd.port.pre.mk>
 


More information about the svn-ports-head mailing list