]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* config/ltmain.m4sh (func_mode_link): Ignore errors from expr
authorAlbert Chin-A-Young <china@thewrittenword.com>
Fri, 5 Aug 2005 07:52:05 +0000 (07:52 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 5 Aug 2005 07:52:05 +0000 (07:52 +0000)
when determining if piece-wise linking should be done.

ChangeLog
config/ltmain.m4sh

index a3a2125ee58a93cccfce0ec6094a7292aa67fd86..713c4c75808cacb58fcca475860cd2fda1e9bb00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-05  Albert Chin-A-Young  <china@thewrittenword.com>
+
+       * config/ltmain.m4sh (func_mode_link): Ignore errors from expr
+       when determining if piece-wise linking should be done.
+
 2005-08-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * config/ltmain.m4sh (func_mode_link) <cwrappersource>: Add
index 04f4ac6d998b58c714852c27f82ec5727e08fcf9..6f3c610f9cb5e6de46ebebc815513c5f520238c5 100644 (file)
@@ -5041,8 +5041,9 @@ EOF
          fi
        fi
 
-       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
-          test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+       if test "X$skipped_export" != "X:" &&
+          len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
+         test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
          :
        else
          # The command line is too long to link in one step, link piecewise
@@ -5089,7 +5090,7 @@ EOF
            do
              eval test_cmds=\"$reload_cmds $objlist $last_robj\"
              if test "X$objlist" = X ||
-                { len=`expr "X$test_cmds" : ".*"` &&
+                { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
                   test "$len" -le "$max_cmd_len"; }; then
                objlist="$objlist $obj"
              else
@@ -6292,8 +6293,8 @@ fi\
        fi
        eval cmds=\"$old_archive_cmds\"
 
-       if len=`expr "X$cmds" : ".*"` &&
-            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+       if len=`expr "X$cmds" : ".*" 2>/dev/null` &&
+          test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
          cmds=$old_archive_cmds
        else
          # the command line is too long to link in one step, link in parts
@@ -6313,7 +6314,7 @@ fi\
            oldobjs="$objlist $obj"
            objlist="$objlist $obj"
            eval test_cmds=\"$old_archive_cmds\"
-           if len=`expr "X$test_cmds" : ".*"` &&
+           if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
               test "$len" -le "$max_cmd_len"; then
              :
            else