summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/libbind/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/libbind/Makefile b/net/libbind/Makefile
index 0f35df4e58d..9ae6f9ab720 100644
--- a/net/libbind/Makefile
+++ b/net/libbind/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2012/10/23 17:18:33 asau Exp $
+# $NetBSD: Makefile,v 1.6 2013/05/10 00:52:04 riastradh Exp $
#
DISTNAME= libbind-6.0
@@ -16,6 +16,14 @@ CONFLICTS= man-pages-[0-9]*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) && ${OPSYS} == "NetBSD"
+# Yes, we'll have /dev/random on NetBSD, even autoconf you can't detect
+# it by compiling and running a program when cross-compiling.
+CONFIGURE_ENV+= ac_cv_file__dev_random=yes
+.endif
+
CONFIGURE_ARGS+= --with-libtool=yes
MAKE_JOBS_SAFE= no