>From f07b1a418c5f871f6284f63cfed2b1647f29ca11 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 25 Aug 2010 10:57:16 +0200 Subject: [PATCH 5/7] 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. Signed-off-by: Peter Rosin --- ChangeLog | 10 ++++++++++ libltdl/config/ltmain.m4sh | 12 ++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8995d4..a914544 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2010-08-25 Peter Rosin + 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. + +2010-08-25 Peter Rosin + Translate dependent libraries using func_to_tool_path * libltdl/config/ltmain.m4sh (func_mode_link): Translate paths to dependent libraries for easy consumption by the diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 26f6fda..8751c34 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -7373,11 +7373,13 @@ EOF save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm - libobjs=$nm_file_list_spec$output + func_to_tool_path "$output" + libobjs=$nm_file_list_spec$func_to_tool_path_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do - $ECHO "$obj" + func_to_tool_path "$obj" + $ECHO "$func_to_tool_path_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' @@ -8359,9 +8361,11 @@ EOF func_verbose "using command file archive linking..." for obj in $oldobjs do - $ECHO "$obj" + func_to_tool_path "$obj" + $ECHO "$func_to_tool_path_result" done > $output_objdir/$libname.libcmd - oldobjs=" $archiver_list_spec$output_objdir/$libname.libcmd" + func_to_tool_path "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_path_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts -- 1.7.1