Hi Peter, * Peter O'Gorman wrote on Tue, Sep 02, 2008 at 05:50:33PM CEST: > > On an hpux10.20 system with ARG_MAX at 20KB, we still got "Arg list too > long" when linking. It worked when I edited the libtool script and set > max_cmd_len to 10K instead of 15. > > For systems with a large value of ARG_MAX, setting max_cmd_len to 75% > still seems reasonable though. > > Ok to push?
There is little reason to believe that the number of arguments that the C++ driver adds, plus the size of the environment, scales linearly with ARG_MAX[1]. So why not subtract a reasonable constant amount in the first place? Thanks, Ralf [1] except for the possibility that, for systems with very low limit, the driver may put less things on the command line, or use something like a response file anyway. > >From 87f8effdad00f84ffdd27803ac01fbd0e64d935d Mon Sep 17 00:00:00 2001 > From: Peter O'Gorman <[EMAIL PROTECTED]> > Date: Tue, 2 Sep 2008 10:43:52 -0500 > Subject: [PATCH] Increase "Safety factor" when ARG_MAX is less than 40KB. > > * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): set max_cmd_len to 50% of ARG_MAX > if ARG_MAX is < 40KB, otherwise, set to 75%.
