summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rosin <peda@lysator.liu.se>2010-07-08 14:23:02 +0200
committerPeter Rosin <peda@lysator.liu.se>2010-07-08 14:23:02 +0200
commit3f22cab581a21d240df9cbfc6d1fdedaa1aa2b97 (patch)
tree8d29c3087bb07c3a00cdd5e7475ba926409e1685
parent2e5ed25df3ccbc6e0fef5195199ba2e7649c2767 (diff)
downloadlibtool-3f22cab581a21d240df9cbfc6d1fdedaa1aa2b97.tar.gz
Optimize assignment of output_la.
* libltdl/config/ltmain.m4sh (func_mode_link): Save two fork/exec instances. Report by Ralf Wildenhues.
-rw-r--r--ChangeLog7
-rw-r--r--libltdl/config/ltmain.m4sh3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b180dc6d..16de0b36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-08 Peter Rosin <peda@lysator.liu.se>
+
+ 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 <gary@gnu.org>
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