>From 798d514f2afa31ca0a62478e9c754a0add9971ee Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 25 Aug 2010 11:08:31 +0200 Subject: [PATCH 3/7] 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. Signed-off-by: Peter Rosin --- ChangeLog | 10 ++++++++++ libltdl/config/ltmain.m4sh | 11 ++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c951f8f..a9ba720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2010-08-25 Peter Rosin + 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. + +2010-08-25 Peter Rosin + Add path conversion from $build to toolchain. * libltdl/m4/libtool.m4 (_LT_PATH_CONVERSION_FUNCTIONS): Add cache variable lt_cv_to_tool_path_cmd that describes how to diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index a8ba41d..347d859 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -7519,10 +7519,13 @@ EOF echo 'INPUT (' > $output for obj in $save_libobjs do - $ECHO "$obj" >> $output + func_to_tool_path "$obj" + $ECHO "$func_to_tool_path_result" >> $output done echo ')' >> $output func_append delfiles " $output" + func_to_tool_path "$output" + output=$func_to_tool_path_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" @@ -7536,10 +7539,12 @@ EOF fi for obj do - $ECHO "$obj" >> $output + func_to_tool_path "$obj" + $ECHO "$func_to_tool_path_result" >> $output done func_append delfiles " $output" - output=$firstobj\"$file_list_spec$output\" + func_to_tool_path "$output" + output=$firstobj\"$file_list_spec$func_to_tool_path_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." -- 1.7.1