Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2019 15:46:25 +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: r519023 - head/math/pari
Message-ID:  <201912041546.xB4FkP7k008370@repo.freebsd.org>

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



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