to -1 on hurd, it has no command line argument limits.
* ltmain.in Handle max_cmd_len=-1 for systems that don't have
command line argument limits.
+2001-07-09 Robert Boehne <rboehne@ricardo-us.com>
+
+ * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Set max_cmd_len
+ to -1 on hurd, it has no command line argument limits.
+ * ltmain.in Handle max_cmd_len=-1 for systems that don't have
+ command line argument limits.
+
2001-07-05 Gary V. Vaughan <gary@gnu.org>
* libtool.m4 (_LT_AC_LANG_C_CONFIG): Revert to 1.3.x
lt_cv_sys_max_cmd_len=12288; # 12K is about right
;;
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1; # 12K is about right
+ break
+ ;;
+
*)
# If test is not a shell built-in, we'll probably end up computing a
# maximum length that is only half of the actual maximum length, but
fi
if len=`expr "X$cmds" : ".*"` &&
- test $len -le $max_cmd_len; then
+ test $len -le $max_cmd_len || test $max_cmd_len -le -1; then
:
else
# The command line is too long to link in one step, link piecewise.
eval cmds=\"$old_archive_cmds\"
if len=`expr "X$cmds" : ".*"` &&
- test $len -le $max_cmd_len; then
+ test $len -le $max_cmd_len || test $max_cmd_len -le -1; then
:
else
# the command line is too long to link in one step, link in parts