svn commit: r529965 - head/math/p5-Math-Pari

Piotr Kubaj pkubaj at FreeBSD.org
Tue Mar 31 13:25:51 UTC 2020


Author: pkubaj
Date: Tue Mar 31 13:17:53 2020
New Revision: 529965
URL: https://svnweb.freebsd.org/changeset/ports/529965

Log:
  math/p5-Math-Pari: fix build on powerpc(64) head
  
  powerpc and powerpc64 need -fPIC when using clang 10:
  ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol issquarefree; recompile with -fPIC

Modified:
  head/math/p5-Math-Pari/Makefile

Modified: head/math/p5-Math-Pari/Makefile
==============================================================================
--- head/math/p5-Math-Pari/Makefile	Tue Mar 31 13:05:07 2020	(r529964)
+++ head/math/p5-Math-Pari/Makefile	Tue Mar 31 13:17:53 2020	(r529965)
@@ -31,6 +31,8 @@ LLD_UNSAFE=	yes	# lld defaults to -ztext
 PARI_WRKSRC=	${WRKDIR}/pari-2.3.5
 
 CFLAGS+=	-I${PARI_WRKSRC}/src/headers -I${PARI_WRKSRC}/build
+CFLAGS_powerpc=	-fPIC
+CFLAGS_powerpc64=	-fPIC
 
 CONFIGURE_ARGS=	parilib="-L${PARI_WRKSRC}/build -lpari" \
 		paridir=${PARI_WRKSRC}


More information about the svn-ports-all mailing list