summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2004-09-09 19:19:29 +0200
committerunknown <joerg@mysql.com>2004-09-09 19:19:29 +0200
commit37e3feba8291661a135ec6d97f443f9d4eef55cc (patch)
tree0b0c0a8831307f50a147788095ef039d2c41cc41 /ltmain.sh
parentc36356b6a4ac740f61f2a82a04f87213b06f40f5 (diff)
downloadmariadb-git-37e3feba8291661a135ec6d97f443f9d4eef55cc.tar.gz
Prevent some combinations of autotools and libtool version
from generating a non-working top level 'libtool'. ltmain.sh: Some combinations of autotools and libtool leave 'max_cmd'len' (in top-level 'libtool') unset, this eventually causes a 'ld' command without input files to be generated. Prevent this error by supplying a 4 kB default value.
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ltmain.sh b/ltmain.sh
index 62b9ed17e3f..92e438cbda6 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -51,6 +51,9 @@ fi
# libtool 1.4.2 workaround
SED=${SED:-sed}
+# workaround against unset 'max_cmd_len': assume at least 4 kB
+max_cmd_len=${max_cmd_len:-4096}
+
# The name of this program.
progname=`$echo "$0" | ${SED} 's%^.*/%%'`
modename="$progname"