diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-03-31 13:17:53 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2020-03-31 13:17:53 +0000 |
commit | 6f8678f8dfa30356fdc9107aadce946f1f1533ea (patch) | |
tree | 3bb6935a854a6aeae4eb5124acc505f9a1176360 /math/p5-Math-Pari | |
parent | 465fec1163afbd57ec0e1e4e8aaa0d56c3b99f00 (diff) | |
download | ports-6f8678f8dfa30356fdc9107aadce946f1f1533ea.tar.gz ports-6f8678f8dfa30356fdc9107aadce946f1f1533ea.zip |
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
Notes
Notes:
svn path=/head/; revision=529965
Diffstat (limited to 'math/p5-Math-Pari')
-rw-r--r-- | math/p5-Math-Pari/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile index 27f56572e043..37d3407c6c24 100644 --- a/math/p5-Math-Pari/Makefile +++ b/math/p5-Math-Pari/Makefile @@ -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} |