Final part of SF patch #102409 by jlt63: Cygwin Python DLL and Shared

Extension Patch.

These are the changes to the Modules Makefile and makesetup script for
Cygwin.
This commit is contained in:
Guido van Rossum 2001-01-10 21:12:18 +00:00
parent aef734b182
commit b961920ff4
2 changed files with 23 additions and 1 deletions

View file

@ -105,6 +105,7 @@ SYSLIBS= $(LIBM) $(LIBC)
LIBRARY= ../libpython$(VERSION).a
LDLIBRARY= ../@LDLIBRARY@
@SET_DLLLIBRARY@
# === Rules ===
@ -127,6 +128,14 @@ link: $(MAINOBJ)
$(LDLIBRARY) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python$(EXE) $(LDLAST)
mv python$(EXE) ../python$(EXE)
# This rule builds the Cygwin Python DLL
$(DLLLIBRARY): $(LIBRARY)
test -d cygwin || mkdir cygwin
(cd cygwin; ar x ../$^)
dlltool --export-all --output-def $(basename $@).def cygwin/*.o
$(LDSHARED) -Wl,--out-implib=$(LDLIBRARY) -o $@ $(basename $@).def cygwin/*.o $(MODLIBS) $(LIBS) $(SYSLIBS)
rm -fr cygwin
clean:
-rm -f *.o python$(EXE) core *~ [@,#]* *.old *.orig *.rej
-rm -f add2lib hassignal