* ltmain.in: strip off the .exe suffix only on *Win

(Reported by Matthew D. Langston <langston@SLAC.Stanford.EDU>)
This commit is contained in:
Thomas Tanner 1999-05-23 10:03:23 +00:00 committed by Thomas Tanner
parent 1b2ea275d2
commit 306612d348
5 changed files with 15 additions and 7 deletions

View File

@ -1,3 +1,8 @@
1999-05-23 Thomas Tanner <tanner@ffii.org>
* ltmain.in: strip off the .exe suffix only on *Win
(Reported by Matthew D. Langston <langston@SLAC.Stanford.EDU>)
1999-05-22 Thomas Tanner <tanner@ffii.org>
* NEWS: updated

View File

@ -11,7 +11,7 @@ touch ltconfig
touch ltmain.sh
touch libtoolize
aclocal
automake --gnits --add-missing
automake --gnu --add-missing
autoconf
for sub in demo depdemo libltdl mdemo cdemo; do

View File

@ -8,4 +8,4 @@ l2 depends on l1.
l3 depends on l1 and l2.
l4 depends on l3 and libm.
The test program uses l1, l2 and l4.
The test program uses l1, l2 and l4.

View File

@ -42,4 +42,3 @@ local-install-files: $(DISTFILES)
|| cp -p $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
fi; \
done

View File

@ -3262,10 +3262,14 @@ static const void *lt_preloaded_setup() {
# Only actually do things if our run command is non-null.
if test -z "$run"; then
# win32 will think the script is a binary if it has
# a .exe suffix, so we strip it off here.
case $output in
*.exe) output=`echo $output|sed 's,.exe$,,'` ;;
case "$host" in
*-*-cygwin* | *-*-mingw* | *-*-os2*)
# win32 will think the script is a binary if it has
# a .exe suffix, so we strip it off here.
case $output in
*.exe) output=`echo $output|sed 's,.exe$,,'` ;;
esac
;;
esac
$rm $output
trap "$rm $output; exit 1" 1 2 15