From: Michael Matz Date: Tue, 12 Sep 2000 23:33:21 +0000 (+0000) Subject: * ltmain.in: Be careful about filenames with multiple `.'s in X-Git-Tag: multi-language-merge-point~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc337584d6425ca5e42963da061ef8e7a4f3862d;p=thirdparty%2Flibtool.git * ltmain.in: Be careful about filenames with multiple `.'s in them when calculating file extensions. Reported by Joel Reed --- diff --git a/ChangeLog b/ChangeLog index 97693defc..3b2f33c5b 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 Alexandre Oliva * libtool.m4 (AC_PROG_LIBTOOL, AC_LIBTOOL_GCJ): Auto-detect diff --git a/ltmain.in b/ltmain.in index cce9b69a2..af5efec60 100644 --- a/ltmain.in +++ b/ltmain.in @@ -557,7 +557,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