diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/p5-Math-Pari/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/math/p5-Math-Pari/Makefile b/math/p5-Math-Pari/Makefile index d86e86fcbef9..215fd6c4bdf1 100644 --- a/math/p5-Math-Pari/Makefile +++ b/math/p5-Math-Pari/Makefile @@ -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}" \ |