Den 2010-07-06 11:27 skrev Peter Rosin:
+ output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
save 2 fork&exec:
func_basename "$output"
output_la=$func_basename_result
Yes, good point. I'll send a patch later if noone beats me to it, since
it might easily take me a couple of days to get to it. Life is interfering.
I'm pushing the following as trivial.
Cheers,
Peter
2010-07-08 Peter Rosin <p...@lysator.liu.se>
Optimize assignment of output_la.
* libltdl/config/ltmain.m4sh (func_mode_link): Save two fork/exec
instances.
Report by Ralf Wildenhues.
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 1a2c02d..a8f0ac1 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -6916,7 +6916,8 @@ EOF
func_show_eval "$cmd" 'exit $?'
skipped_export=false
elif test -n "$nm_file_list_spec"; then
- output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
+ func_basename "$output"
+ output_la=$func_basename_result
save_libobjs=$libobjs
save_output=$output
output=${output_objdir}/${output_la}.nm