pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk As we can get the maximun command line length safel...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1e494fb206fb
branches: trunk
changeset: 472393:1e494fb206fb
user: jmmv <jmmv%pkgsrc.org@localhost>
date: Fri Apr 09 22:43:31 2004 +0000
description:
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).
diffstat:
mk/defs.NetBSD.mk | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r b0c93590d5ca -r 1e494fb206fb mk/defs.NetBSD.mk
--- a/mk/defs.NetBSD.mk Fri Apr 09 21:43:00 2004 +0000
+++ b/mk/defs.NetBSD.mk Fri Apr 09 22:43:31 2004 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index