From 568b6f4983943b053b9e5913cc7cd5b6fd6d9427 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Tue, 12 Sep 2000 23:26:49 +0000 Subject: [PATCH] * ltmain.in: Be careful about filenames with multiple `.'s in them when calculating file extensions. Reported by Joel Reed --- ChangeLog | 6 ++++++ ltmain.in | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 53e24dc3..6fa756e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-09-12 Michael Matz + + * ltmain.in: Be careful about filenames with multiple `.'s in + them when calculating file extensions. + Reported by Joel Reed + 2000-09-12 Gary V. Vaughan libtool.m4 (AC_PROG_LIBTOOL): Removed, as it was triggering a diff --git a/ltmain.in b/ltmain.in index 10a3937d..19ac7f92 100644 --- a/ltmain.in +++ b/ltmain.in @@ -466,7 +466,7 @@ if test -z "$show_help"; then # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext} + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit 1" 1 2 15