]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Convert file names to toolchain format when linking.
authorPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:38:34 +0000 (10:38 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 6 Sep 2010 08:38:34 +0000 (10:38 +0200)
* libltdl/config/ltmain.m4sh (func_mode_link): When exporting
symbols and when linking 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 problems in 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 f352d145f87b03d2b1e7f4094fa46ed0f6267882..4ef04145b226a2060e11afddeef843e503b16b14 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 when linking.
+       * libltdl/config/ltmain.m4sh (func_mode_link): When exporting
+       symbols and when linking 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 problems in stresstest.at on MSYS when run
+       with low command line length.
+
        Add file name conversion from $build to toolchain.
        * configure.ac: Ensure to_tool_file_cmd is available to Makefile.
        * libltdl/m4/libtool.m4 (_LT_PATH_CONVERSION_FUNCTIONS): Add
index 2cccd47f2f63be1a239f02b0bfd784a508b3a23f..70f58a826c2eef652d8b065ee4ec61bde82b9247 100644 (file)
@@ -7486,10 +7486,13 @@ EOF
            echo 'INPUT (' > $output
            for obj in $save_libobjs
            do
-             $ECHO "$obj" >> $output
+             func_to_tool_file "$obj"
+             $ECHO "$func_to_tool_file_result" >> $output
            done
            echo ')' >> $output
            func_append delfiles " $output"
+           func_to_tool_file "$output"
+           output=$func_to_tool_file_result
          elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
            output=${output_objdir}/${output_la}.lnk
            func_verbose "creating linker input file list: $output"
@@ -7503,10 +7506,12 @@ EOF
            fi
            for obj
            do
-             $ECHO "$obj" >> $output
+             func_to_tool_file "$obj"
+             $ECHO "$func_to_tool_file_result" >> $output
            done
            func_append delfiles " $output"
-           output=$firstobj\"$file_list_spec$output\"
+           func_to_tool_file "$output"
+           output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
          else
            if test -n "$save_libobjs"; then
              func_verbose "creating reloadable object files..."