summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-14 11:39:53 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-14 11:39:53 +0000
commit9ba4a5a0b2eba3ec19b346f2a90fc2edfb1f172e (patch)
tree55c72723e2af8faf9925bbdcffb36f9fc941fc7e /mk
parent83319132afb880ecfff589883e1057147c514f20 (diff)
downloadpkgsrc-9ba4a5a0b2eba3ec19b346f2a90fc2edfb1f172e.tar.gz
Add maximum command line length check, pointed out by jmmv@.
Diffstat (limited to 'mk')
-rw-r--r--mk/defs.FreeBSD.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/defs.FreeBSD.mk b/mk/defs.FreeBSD.mk
index bf08149039e..0e2bc0549ef 100644
--- a/mk/defs.FreeBSD.mk
+++ b/mk/defs.FreeBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.FreeBSD.mk,v 1.35 2004/04/14 11:30:00 xtraeme Exp $
+# $NetBSD: defs.FreeBSD.mk,v 1.36 2004/04/14 11:39:53 xtraeme Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -166,3 +166,10 @@ SERIAL_DEVICES?= /dev/cuaa0
.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