aboutsummaryrefslogtreecommitdiff
path: root/security/nettle
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2013-01-26 14:44:57 +0000
committerJohan van Selst <johans@FreeBSD.org>2013-01-26 14:44:57 +0000
commita47261c612d1470b527e2e8ffcb90f4fbb1813dd (patch)
tree30ce8817584ac3a93d3f76464defb7624a599ed0 /security/nettle
parentb4b8fccfd6ce296b1ac514c08fb2cb9f9e775ffa (diff)
downloadports-a47261c612d1470b527e2e8ffcb90f4fbb1813dd.tar.gz
ports-a47261c612d1470b527e2e8ffcb90f4fbb1813dd.zip
Add -fPIC flag to fix compilation on sparc64
Submitted by: Anton Shterenlikht <mexas@bristol.ac.uk>
Notes
Notes: svn path=/head/; revision=311015
Diffstat (limited to 'security/nettle')
-rw-r--r--security/nettle/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index 656098d35590..1904efcb8629 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -33,6 +33,12 @@ EXAMPLES= examples/*.c examples/*.h
INFO= nettle
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "sparc64"
+CONFIGURE_ENV+= CCPIC=-fPIC
+.endif
+
.include <bsd.port.options.mk>
post-install:
@@ -45,4 +51,4 @@ post-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>