aboutsummaryrefslogtreecommitdiff
path: root/math/pari/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/pari/Makefile')
-rw-r--r--math/pari/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/pari/Makefile b/math/pari/Makefile
index c07df247ce38..aa88b3543e2a 100644
--- a/math/pari/Makefile
+++ b/math/pari/Makefile
@@ -35,6 +35,10 @@ HAVE_EMACS!= which emacs || echo nope
PLIST= ${PKGDIR}/pkg-plist.emacs
.endif
+.if ${MACHINE_ARCH:L} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-O3|"${CFLAGS}"|' ${WRKSRC}/${CONFIGURE_SCRIPT}