]> 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:33:21 +0000 (23:33 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 12 Sep 2000 23:33:21 +0000 (23:33 +0000)
them when calculating file extensions.
Reported by Joel Reed <jreed@support.ddiworld.com>

ChangeLog
ltmain.in

index 97693defcee83a416e967f30e3e2bd08bd2865b5..3b2f33c5b1ee347421f2d5ce7eb2e7442a483e7a 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  Alexandre Oliva  <aoliva@redhat.com>
 
        * libtool.m4 (AC_PROG_LIBTOOL, AC_LIBTOOL_GCJ): Auto-detect
index cce9b69a29262ea66531551a4f6f43d92f2ad7fb..af5efec60795e3f207a9e4909f56593ed5ed6217 100644 (file)
--- 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