From: Ralf Wildenhues Date: Fri, 12 Aug 2005 21:07:57 +0000 (+0000) Subject: * ltmain.in (install mode) [ cygwin, mingw ]: Do not append a dot X-Git-Tag: release-1-5-20~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8d53d19a90f80009038e608f2ca2d1e8ce9113;p=thirdparty%2Flibtool.git * 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 . --- diff --git a/ChangeLog b/ChangeLog index c0368ff59..a2b78365a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2005-08-10 Ralf Wildenhues + * 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 . + * Makefile.am, libltdl/Makefile.am: Install libltdl data files in correct order, by Automake rules. Really fixes ownership and timestamp problems. diff --git a/ltmain.in b/ltmain.in index d07ab2481..63d3c479e 100644 --- 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=