From 90acbe9a9dfbc42339ec81c26f8964f9e5d128a1 Mon Sep 17 00:00:00 2001 From: riastradh Date: Fri, 10 May 2013 00:52:04 +0000 Subject: Fix net/libbind cross-build on NetBSD. Instruct autoconf that the target will have /dev/random. ok agc --- net/libbind/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'net') 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 -- cgit v1.2.3