From 3f22cab581a21d240df9cbfc6d1fdedaa1aa2b97 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Thu, 8 Jul 2010 14:23:02 +0200 Subject: [PATCH] Optimize assignment of output_la. * libltdl/config/ltmain.m4sh (func_mode_link): Save two fork/exec instances. Report by Ralf Wildenhues. --- ChangeLog | 7 +++++++ libltdl/config/ltmain.m4sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b180dc6d..16de0b36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-07-08 Peter Rosin + + Optimize assignment of output_la. + * libltdl/config/ltmain.m4sh (func_mode_link): Save two fork/exec + instances. + Report by Ralf Wildenhues. + 2010-07-08 Gary V. Vaughan Fix a cut-n-pasto in "2010-07-07 Charles Wilson" patch. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 1a2c02d3..a8f0ac13 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