diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-04-09 22:43:31 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-04-09 22:43:31 +0000 |
commit | d555f0870e54c2bc03359eaa855dd2dfb08247dc (patch) | |
tree | b8e2f5f2f991fa1b5b69ac5a593b0667963bf8b9 /mk | |
parent | 97b675b032669a91c88205db23ba790dfe62af79 (diff) | |
download | pkgsrc-d555f0870e54c2bc03359eaa855dd2dfb08247dc.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 |