summaryrefslogtreecommitdiff
path: root/mk
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
commit5e73450e37b2c1424f2b1ebfb24f343d670664a7 (patch)
treead381ef96a230f9018c5754f09de4643e3cbb127 /mk
parent7d7410d9a56b136bbaba1c1bcf0162db90f03f34 (diff)
downloadpkgsrc-5e73450e37b2c1424f2b1ebfb24f343d670664a7.tar.gz
Pass a maximum command line length to "configure" script on Linux.
PR 45274 by Emmanuel Kasper
Diffstat (limited to 'mk')
-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