]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (install mode) [ cygwin, mingw ]: Do not append a dot
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 12 Aug 2005 21:07:57 +0000 (21:07 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 12 Aug 2005 21:07:57 +0000 (21:07 +0000)
to a file name to source it, it breaks on cygwin managed mounts
and is not necessary anywhere.
Reported by Eric Blake <ebb9@byu.net>.

ChangeLog
ltmain.in

index c0368ff598bef00cc0705b5962ae3394697948b1..a2b78365abbb4929cedeec0f1dd7e2571728eca8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-08-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * ltmain.in (install mode) [ cygwin, mingw ]: Do not append a dot
+       to a file name to source it, it breaks on cygwin managed mounts
+       and is not necessary anywhere.
+       Reported by Eric Blake <ebb9@byu.net>.
+
        * Makefile.am, libltdl/Makefile.am: Install libltdl data files
        in correct order, by Automake rules.  Really fixes ownership and
        timestamp problems.
index d07ab2481849d0e4035247e270185b070efe5622..63d3c479e29c30f8ed9f50a3877928d06e510e12 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -5742,17 +5742,15 @@ relink_command=\"$relink_command\""
          notinst_deplibs=
          relink_command=
 
-         # To insure that "foo" is sourced, and not "foo.exe",
-         # finese the cygwin/MSYS system by explicitly sourcing "foo."
-         # which disallows the automatic-append-.exe behavior.
-         case $build in
-         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
-         *) wrapperdot=${wrapper} ;;
-         esac
+         # Note that it is not necessary on cygwin/mingw to append a dot to
+         # foo even if both foo and FILE.exe exist: automatic-append-.exe
+         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
+         # `FILE.' does not work on cygwin managed mounts.
+         #
          # If there is no directory component, then add one.
-         case $file in
-         */* | *\\*) . ${wrapperdot} ;;
-         *) . ./${wrapperdot} ;;
+         case $wrapper in
+         */* | *\\*) . ${wrapper} ;;
+         *) . ./${wrapper} ;;
          esac
 
          # Check the variables that should have been set.
@@ -5780,17 +5778,15 @@ relink_command=\"$relink_command\""
          done
 
          relink_command=
-         # To insure that "foo" is sourced, and not "foo.exe",
-         # finese the cygwin/MSYS system by explicitly sourcing "foo."
-         # which disallows the automatic-append-.exe behavior.
-         case $build in
-         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
-         *) wrapperdot=${wrapper} ;;
-         esac
+         # Note that it is not necessary on cygwin/mingw to append a dot to
+         # foo even if both foo and FILE.exe exist: automatic-append-.exe
+         # behavior happens only for exec(3), not for open(2)!  Also, sourcing
+         # `FILE.' does not work on cygwin managed mounts.
+         #
          # If there is no directory component, then add one.
-         case $file in
-         */* | *\\*) . ${wrapperdot} ;;
-         *) . ./${wrapperdot} ;;
+         case $wrapper in
+         */* | *\\*) . ${wrapper} ;;
+         *) . ./${wrapper} ;;
          esac
 
          outputname=