source:
scripts/untested/autotools/patches/libtool-1.5.14-ltmain_sh-max_cmd_len.patch@
f118837
Last change on this file since f118837 was d1afb9e, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.1 KB |
-
libtool-1.5.14/ltmain.in
136 136 lo2o="s/\\.lo\$/.${objext}/" 137 137 o2lo="s/\\.${objext}\$/.lo/" 138 138 quote_scanset='[[~#^*{};<>?'"'"' ]' 139 140 if test -z "$max_cmd_len"; then 141 i=0 142 testring="ABCD" 143 new_result= 144 145 # If test is not a shell built-in, we'll probably end up computing a 146 # maximum length that is only half of the actual maximum length, but 147 # we can't tell. 148 while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 149 = "XX$testring") >/dev/null 2>&1 && 150 new_result=`expr "X$testring" : ".*" 2>&1` && 151 max_cmd_len="$new_result" && 152 test "$i" != 17 # 1/2 MB should be enough 153 do 154 i=`expr $i + 1` 155 testring="$testring$testring" 156 done 157 testring= 158 # Add a significant safety factor because C++ compilers can tack on massive 159 # amounts of additional arguments before passing them to the linker. 160 # It appears as though 1/2 is a usable value. 161 max_cmd_len=`expr $max_cmd_len \/ 2` 162 fi 139 163 140 164 ##################################### 141 165 # Shell function definitions:
Note:
See TracBrowser
for help on using the repository browser.