Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2020 13:17:53 +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: r529965 - head/math/p5-Math-Pari
Message-ID:  <202003311317.02VDHr5F096663@repo.freebsd.org>

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



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