diff options
author | jmmv <jmmv> | 2004-04-09 22:43:31 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2004-04-09 22:43:31 +0000 |
commit | b7126a6e0bc1d1c57769132d08b0d13d557f3910 (patch) | |
tree | b8e2f5f2f991fa1b5b69ac5a593b0667963bf8b9 /mk | |
parent | df624fad6fdc4cf69944bf495eeaf51d98c97e37 (diff) | |
download | pkgsrc-b7126a6e0bc1d1c57769132d08b0d13d557f3910.tar.gz |
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 (limited to 'mk')
-rw-r--r-- | mk/defs.NetBSD.mk | 9 |
1 files changed, 8 insertions, 1 deletions
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 |