svn commit: r519023 - head/math/pari
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Dec 4 15:46:25 UTC 2019
Author: pkubaj
Date: Wed Dec 4 15:46:24 2019
New Revision: 519023
URL: https://svnweb.freebsd.org/changeset/ports/519023
Log:
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)
Modified:
head/math/pari/Makefile
Modified: head/math/pari/Makefile
==============================================================================
--- head/math/pari/Makefile Wed Dec 4 15:24:02 2019 (r519022)
+++ head/math/pari/Makefile Wed Dec 4 15:46:24 2019 (r519023)
@@ -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>
More information about the svn-ports-all
mailing list