>From 6d6f0d24c51c7b4902452a312c5a377dae65d85a Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Sun, 29 Aug 2010 13:31:47 +0200 Subject: [PATCH 2/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 cc30469..b0adaa0 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 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 diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 32f396d..417fbfc 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -7488,10 +7488,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" @@ -7505,10 +7508,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..." -- 1.7.1