Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2020 17:46:30 +0000 (UTC)
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r538415 - head/math/p5-Math-Pari
Message-ID:  <202006101746.05AHkUo4042922@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mikael
Date: Wed Jun 10 17:46:30 2020
New Revision: 538415
URL: https://svnweb.freebsd.org/changeset/ports/538415

Log:
  math/p5-Math-Pari: fix build on i386
  
  PR:		230213
  Submitted by:	Nathan ndowens04@gmail.com
  Reviewed by:	emaste, mikael
  Approved by:	perl (maintainer timeout, > 1 year)

Modified:
  head/math/p5-Math-Pari/Makefile

Modified: head/math/p5-Math-Pari/Makefile
==============================================================================
--- head/math/p5-Math-Pari/Makefile	Wed Jun 10 17:41:38 2020	(r538414)
+++ head/math/p5-Math-Pari/Makefile	Wed Jun 10 17:46:30 2020	(r538415)
@@ -26,7 +26,6 @@ LIB_DEPENDS=	libgmp.so:math/gmp
 
 USES=		perl5
 USE_PERL5=	configure
-LLD_UNSAFE=	yes	# lld defaults to -ztext
 
 PARI_WRKSRC=	${WRKDIR}/pari-2.3.5
 
@@ -38,13 +37,17 @@ CONFIGURE_ARGS=	parilib="-L${PARI_WRKSRC}/build -lpari
 		paridir=${PARI_WRKSRC}
 MAKE_ARGS=	LDLOADLIBS="-lm -L${PARI_WRKSRC}/build -Wl,-rpath=${SITE_ARCH}/auto/Math/Pari -lpari"
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|2001007|2003000|' ${WRKSRC}/Makefile.PL
 	@${REINPLACE_CMD} -E '/^list=/s/(ld|ranlib|perl|emacs)//g' \
 		${PARI_WRKSRC}/Configure
 	@${REINPLACE_CMD} -e '/^CFLAGS=/s/\$$cflags//' \
 		${PARI_WRKSRC}/config/get_cc
-
+.if ${ARCH} == "i386"
+	${REINPLACE_CMD} -e 's|-Wl|-Wl,-znotext|' ${PARI_WRKSRC}/config/ldflags
+.endif
 pre-configure:
 	cd ${PARI_WRKSRC} && ${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
 	    CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \



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