1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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
This commit is contained in:
Piotr Kubaj 2020-03-31 13:17:53 +00:00
parent 465fec1163
commit 6f8678f8df
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=529965

View File

@ -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}