]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Be careful about filenames with multiple `.'s in
authorMichael Matz <matz@ifh.de>
Tue, 12 Sep 2000 23:26:49 +0000 (23:26 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 12 Sep 2000 23:26:49 +0000 (23:26 +0000)
them when calculating file extensions.
Reported by Joel Reed <jreed@support.ddiworld.com>

ChangeLog
ltmain.in

index 53e24dc3b5b090fbc3a163545508dc0f3abae5bd..6fa756e25cb0b1ec8a6fd240dde7eb376a313157 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-09-12  Michael Matz <matz@ifh.de>
+
+       * ltmain.in:  Be careful about filenames with multiple `.'s in
+       them when calculating file extensions.
+       Reported by Joel Reed <jreed@support.ddiworld.com>
+
 2000-09-12  Gary V. Vaughan <gvv@techie.com>
 
        libtool.m4 (AC_PROG_LIBTOOL):  Removed, as it was triggering a
index 10a3937ddedf3ae399abbc567ed4e18e5484a779..19ac7f9280e9fd6d7728392d8ead09328080ece0 100644 (file)
--- 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