1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

math/pari: fix build on powerpc64 elfv2

Add -mminimal-toc only on elfv1, it breaks build on elfv2.

PR:		242417
Approved by:	yuri (maintainer), mentors (implicit approval)
This commit is contained in:
Piotr Kubaj 2019-12-04 15:46:24 +00:00
parent 0b6ae44462
commit cc4bc87661
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519023

View File

@ -22,7 +22,6 @@ USES= perl5 readline
USE_LDCONFIG= yes
USE_PERL5= build
HAS_CONFIGURE= yes
CFLAGS_powerpc64= -mminimal-toc
CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man/man1 \
--prefix=${PREFIX} \
@ -58,6 +57,12 @@ PORTDATA= *
PORTDOCS= *
PORTEXAMPLES= *
.include <bsd.port.pre.mk>
.if defined(PPC_ABI) && ${PPC_ABI} == ELFv1
CFLAGS+= -mminimal-toc
.endif
post-patch:
@${REINPLACE_CMD} -E '/libpari_base\=/s/-tls|-gmp//' \
${WRKSRC}/Configure
@ -77,4 +82,4 @@ do-test-PTHREADS-on:
do-test-MPI-on:
@cd ${WRKSRC} && ${MAKE_CMD} test-parallel RUNTEST="mpirun -np 3"
.include <bsd.port.mk>
.include <bsd.port.post.mk>