Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff555e3

Browse files
committed
Address Bug #115057: add a --with-suffix option to set the EXE
variable in the Makefiles from the configure script. Usefil for Cygwin and Mac OS X builds.
1 parent ef5f2b9 commit ff555e3

4 files changed

Lines changed: 363 additions & 336 deletions

File tree

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ DESTSHARED= $(BINLIBDEST)/lib-dynload
8989
# Shell used by make (some versions default to the login shell, which is bad)
9090
SHELL= /bin/sh
9191

92-
# Use ``EXE=.exe'' for Unix emulations on DOS/Windows (e.g. GNUWIN32)
93-
EXE=
92+
# Executable suffix (.exe on Windows and Mac OS X)
93+
EXE= @EXE@
9494

9595
# Modes for directories, executables and data files created by the
9696
# install process. Default to user-only-writable for all file types.

Modules/Makefile.pre.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ prefix= @prefix@
4141
# Install prefix for architecture-dependent files
4242
exec_prefix= @exec_prefix@
4343

44+
# Executable suffix (.exe on Windows and Mac OS X)
45+
EXE= @EXE@
46+
4447
# Expanded directories
4548
BINDIR= $(exec_prefix)/bin
4649
LIBDIR= $(exec_prefix)/lib
@@ -118,13 +121,10 @@ add2lib: $(OBJS)
118121
$(AR) cr $(LIBRARY) $(OBJS)
119122
touch add2lib
120123

121-
# Use ``EXE=.exe'' for Unix emulations on DOS/Windows
122-
EXE=
123-
124124
# This target is used by the master Makefile to link the final binary.
125125
link: $(MAINOBJ)
126126
$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) $(MAINOBJ) \
127-
$(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python $(LDLAST)
127+
$(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python$(EXE) $(LDLAST)
128128
mv python$(EXE) ../python$(EXE)
129129

130130
clean:

0 commit comments

Comments
 (0)