summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2011-08-22 15:17:53 +0000
committercheusov <cheusov@pkgsrc.org>2011-08-22 15:17:53 +0000
commit024be3ab6df229e9dbd781327ea4e829f89bcefa (patch)
treead381ef96a230f9018c5754f09de4643e3cbb127 /mk/platform
parent1e4807f94e743f6ed93adeb72be5d8fc9b332975 (diff)
downloadpkgsrc-024be3ab6df229e9dbd781327ea4e829f89bcefa.tar.gz
Pass a maximum command line length to "configure" script on Linux.
PR 45274 by Emmanuel Kasper
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/Linux.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
index 020dc5a3450..a05fa0f0dd3 100644
--- a/mk/platform/Linux.mk
+++ b/mk/platform/Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.42 2011/05/11 12:46:20 obache Exp $
+# $NetBSD: Linux.mk,v 1.43 2011/08/22 15:17:53 cheusov Exp $
#
# Variable definitions for the Linux operating system.
@@ -94,8 +94,9 @@ _OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
# 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.
-# FIXME: Adjust to work on this system and enable the lines below.
-#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
+.if exists(/usr/bin/getconf)
+_OPSYS_MAX_CMDLEN_CMD?= /usr/bin/getconf ARG_MAX
+.endif
.if (${MACHINE_ARCH} == "x86_64")
ABI?= 64