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

ChangeLog
ltmain.in

index c162d8e0296b220ab6076a729e6fe5d8024e96ba..b76cf4f24cde806945b2c3ecac1616b1382f0514 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-04  Alexandre Oliva  <aoliva@redhat.com>
 
        * tests/*.test (CONFIG_SITE): Ultrix's /bin/sh fails on
index 6f9b19f3aa9a8a4451250976cfa48f562f593958..6b6df770fe10a48700a70f9ee37e5bc7663d6c7a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -390,7 +390,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