diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2004-02-11 19:33:14 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2004-02-11 19:33:14 +0000 |
commit | 776edcc461526997266b6436900a53f9292e35da (patch) | |
tree | 7b790a98f548e0a30b4756d4e608571250331943 /eclass/ELT-patches | |
parent | fixed to set correct stack sizes for x86 and amd64. (Manifest recommit) (diff) | |
download | gentoo-2-776edcc461526997266b6436900a53f9292e35da.tar.gz gentoo-2-776edcc461526997266b6436900a53f9292e35da.tar.bz2 gentoo-2-776edcc461526997266b6436900a53f9292e35da.zip |
Add max_cmd_len patch
Diffstat (limited to 'eclass/ELT-patches')
-rw-r--r-- | eclass/ELT-patches/max_cmd_len/1.5.0 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/eclass/ELT-patches/max_cmd_len/1.5.0 b/eclass/ELT-patches/max_cmd_len/1.5.0 new file mode 100644 index 000000000000..6d5f88b59669 --- /dev/null +++ b/eclass/ELT-patches/max_cmd_len/1.5.0 @@ -0,0 +1,33 @@ +--- ltmain.sh 2004-02-11 20:55:14.587581248 +0200 ++++ ltmain.sh 2004-02-11 21:15:33.467283368 +0200 +@@ -117,6 +117,30 @@ + execute_dlfiles= + lo2o="s/\\.lo\$/.${objext}/" + o2lo="s/\\.${objext}\$/.lo/" ++ ++if test -z "$max_cmd_len"; then ++ i=0 ++ testring="ABCD" ++ new_result= ++ ++ # 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 ++ # we can't tell. ++ while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ ++ = "XX$testring") >/dev/null 2>&1 && ++ new_result=`expr "X$testring" : ".*" 2>&1` && ++ max_cmd_len="$new_result" && ++ test $i != 17 # 1/2 MB should be enough ++ do ++ i=`expr $i + 1` ++ testring="$testring$testring" ++ done ++ testring= ++ # Add a significant safety factor because C++ compilers can tack on massive ++ # amounts of additional arguments before passing them to the linker. ++ # It appears as though 1/2 is a usable value. ++ max_cmd_len=`expr $max_cmd_len \/ 2` ++fi + + ##################################### + # Shell function definitions: |