]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Convert file names to toolchain format in $NM and $AR @files.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:39:10 +0000 (10:39 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:39:10 +0000 (10:39 +0200)
* libltdl/config/ltmain.m4sh (func_mode_link): When listing
symbols and when creating archives using command files (or
response files), make sure that both the name of the command
file and the content are made up of file names in a format
appropriate for the tool. Fixes stresstest.at on MSYS when
run with low command line length.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
ChangeLog
libltdl/config/ltmain.m4sh

index 4ef04145b226a2060e11afddeef843e503b16b14..2ecd9535af044fcb7cdc9735cd708657d771257b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-09-06  Peter Rosin  <peda@lysator.liu.se>
 
+       Convert file names to toolchain format in $NM and $AR @files.
+       * libltdl/config/ltmain.m4sh (func_mode_link): When listing
+       symbols and when creating archives using command files (or
+       response files), make sure that both the name of the command
+       file and the content are made up of file names in a format
+       appropriate for the tool. Fixes stresstest.at on MSYS when
+       run with low command line length.
+
        Convert file names to toolchain format when linking.
        * libltdl/config/ltmain.m4sh (func_mode_link): When exporting
        symbols and when linking using command files (or response
index 70f58a826c2eef652d8b065ee4ec61bde82b9247..cecc7f45c24fb2272d0ffa402c4b58ef33793d58 100644 (file)
@@ -7337,11 +7337,13 @@ EOF
                save_libobjs=$libobjs
                save_output=$output
                output=${output_objdir}/${output_la}.nm
-               libobjs=$nm_file_list_spec$output
+               func_to_tool_file "$output"
+               libobjs=$nm_file_list_spec$func_to_tool_file_result
                func_append delfiles " $output"
                func_verbose "creating $NM input file list: $output"
                for obj in $save_libobjs; do
-                 $ECHO "$obj"
+                 func_to_tool_file "$obj"
+                 $ECHO "$func_to_tool_file_result"
                done > "$output"
                eval cmd=\"$cmd1\"
                func_show_eval "$cmd" 'exit $?'
@@ -8323,9 +8325,11 @@ EOF
          func_verbose "using command file archive linking..."
          for obj in $oldobjs
          do
-           $ECHO "$obj"
+           func_to_tool_file "$obj"
+           $ECHO "$func_to_tool_file_result"
          done > $output_objdir/$libname.libcmd
-         oldobjs=" $archiver_list_spec$output_objdir/$libname.libcmd"
+         func_to_tool_file "$output_objdir/$libname.libcmd"
+         oldobjs=" $archiver_list_spec$func_to_tool_file_result"
          cmds=$old_archive_cmds
        else
          # the command line is too long to link in one step, link in parts