diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2004-02-11 19:39:44 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2004-02-11 19:39:44 +0000 |
commit | a5c7d81ae08e482a4ff209c97a207eff10f9601c (patch) | |
tree | 576b1444c28c37b5aa73c3ba2eb6e570e28a4939 /sys-devel/libtool/files | |
parent | Add max_cmd_len patch (diff) | |
download | historical-a5c7d81ae08e482a4ff209c97a207eff10f9601c.tar.gz historical-a5c7d81ae08e482a4ff209c97a207eff10f9601c.tar.bz2 historical-a5c7d81ae08e482a4ff209c97a207eff10f9601c.zip |
For older autoconf setups's that do not support libtool.m4,
are never set, causing all tests against it to fail, resulting in
'integer expression expected' errors and possible misbehaviour.
Diffstat (limited to 'sys-devel/libtool/files')
-rw-r--r-- | sys-devel/libtool/files/1.5.2/libtool-1.5.2-ltmain_sh-max_cmd_len.patch | 33 | ||||
-rw-r--r-- | sys-devel/libtool/files/digest-libtool-1.5.2-r3 | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-devel/libtool/files/1.5.2/libtool-1.5.2-ltmain_sh-max_cmd_len.patch b/sys-devel/libtool/files/1.5.2/libtool-1.5.2-ltmain_sh-max_cmd_len.patch new file mode 100644 index 000000000000..3d5bd89ad42b --- /dev/null +++ b/sys-devel/libtool/files/1.5.2/libtool-1.5.2-ltmain_sh-max_cmd_len.patch @@ -0,0 +1,33 @@ +--- libtool-1.5.2/ltmain.in 2004-02-11 20:55:14.587581248 +0200 ++++ libtool-1.5.2.max_cmd_len/ltmain.in 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: diff --git a/sys-devel/libtool/files/digest-libtool-1.5.2-r3 b/sys-devel/libtool/files/digest-libtool-1.5.2-r3 new file mode 100644 index 000000000000..301451dc934e --- /dev/null +++ b/sys-devel/libtool/files/digest-libtool-1.5.2-r3 @@ -0,0 +1,2 @@ +MD5 db66ba05502f533ad0cfd84dc0e03bd5 libtool-1.5.2.tar.gz 2653072 +MD5 fa26a07c978ad05d1f88ed7a472daa49 libtool-1.3.5.tar.gz 538884 |