From d555f0870e54c2bc03359eaa855dd2dfb08247dc Mon Sep 17 00:00:00 2001 From: jmmv Date: Fri, 9 Apr 2004 22:43:31 +0000 Subject: As we can get the maximun command line length safely using sysctl, set it in configure's environment (only when GNU configure and libtool are used) to avoid a check that takes a very long time (and which gives a wrong result, anyway, according to comments in libtool sources). --- mk/defs.NetBSD.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mk/defs.NetBSD.mk') diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk index bf9f30432d2..8eebae5e86d 100644 --- a/mk/defs.NetBSD.mk +++ b/mk/defs.NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.NetBSD.mk,v 1.62 2004/04/07 14:26:51 tv Exp $ +# $NetBSD: defs.NetBSD.mk,v 1.63 2004/04/09 22:43:31 jmmv Exp $ # # Variable definitions for the NetBSD operating system. @@ -200,3 +200,10 @@ FFLAGS+= -mieee .if exists(/usr/include/sys/event.h) PKG_HAVE_KQUEUE= # defined .endif + +# check for maximum command line length and set it in configure's environment, +# to avoid a test required by the libtool script that takes forever. +.if defined(GNU_CONFIGURE) && defined(USE_LIBTOOL) +_OPSYS_MAX_CMDLEN!= /sbin/sysctl -n kern.argmax +CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${_OPSYS_MAX_CMDLEN} +.endif -- cgit v1.2.3