From owner-svn-ports-all@freebsd.org Wed Dec 4 15:46:25 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 80E8D1C98E0; Wed, 4 Dec 2019 15:46:25 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47SjrK2tCFz406X; Wed, 4 Dec 2019 15:46:25 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4686D2502; Wed, 4 Dec 2019 15:46:25 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xB4FkP0m008371; Wed, 4 Dec 2019 15:46:25 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xB4FkP7k008370; Wed, 4 Dec 2019 15:46:25 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201912041546.xB4FkP7k008370@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Wed, 4 Dec 2019 15:46:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519023 - head/math/pari X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/math/pari X-SVN-Commit-Revision: 519023 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2019 15:46:25 -0000 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 + +.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 +.include