summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2016-02-02 15:06:46 +0000
committerfhajny <fhajny@pkgsrc.org>2016-02-02 15:06:46 +0000
commitf318fae24f1b628d69b9450247715d3fbbd44c0d (patch)
tree12749b04b1e735dd39214f80a117f620a388a891
parent053655f0940c8d7c489aa3396660d5370500dafd (diff)
downloadpkgsrc-f318fae24f1b628d69b9450247715d3fbbd44c0d.tar.gz
Fix build on SunOS, where configure doesn't see getaddrinfo(), but
the code knows how to unlock and use it.
-rw-r--r--security/gnupg21/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/gnupg21/Makefile b/security/gnupg21/Makefile
index d3061f5012b..6b15e9a9d25 100644
--- a/security/gnupg21/Makefile
+++ b/security/gnupg21/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2016/01/27 06:31:20 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2016/02/02 15:06:46 fhajny Exp $
DISTNAME= gnupg-2.1.11
PKGNAME= ${DISTNAME:S/gnupg-/gnupg21-/}
@@ -24,6 +24,12 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-g13
.include "../../mk/bsd.fast.prefs.mk"
+
+# SunOS does have getaddrinfo() and the code knows how to use it
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= ac_cv_func_getaddrinfo=yes
+.endif
+
.if ${OPSYS} == "Darwin"
LDFLAGS+= -lresolv
.endif