mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-27 06:09:57 +08:00
* ltmain.in: strip off the .exe suffix only on *Win
(Reported by Matthew D. Langston <langston@SLAC.Stanford.EDU>)
This commit is contained in:
parent
1b2ea275d2
commit
306612d348
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -42,4 +42,3 @@ local-install-files: $(DISTFILES)
|
||||
|| cp -p $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
|
12
ltmain.in
12
ltmain.in
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user