Files
MINGW-packages/mingw-w64-python3/0270-CYGWIN-issue13756-Python-make-fail-on-cygwin.patch
2016-07-12 14:49:26 +03:00

28 lines
1.2 KiB
Diff

diff -Naur Python-3.5.2-orig/Makefile.pre.in Python-3.5.2/Makefile.pre.in
--- Python-3.5.2-orig/Makefile.pre.in 2016-07-12 14:20:55.974800700 +0300
+++ Python-3.5.2/Makefile.pre.in 2016-07-12 14:21:03.706300700 +0300
@@ -669,9 +669,9 @@
$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
-# This rule builds the Cygwin Python DLL and import library if configured
+# This rule builds the Python DLL and import library if configured
# for a shared core library; otherwise, this rule is a noop.
-$(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
+$(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
if test -n "$(DLLLIBRARY)"; then \
$(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
$(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \
diff -Naur Python-3.5.2-orig/Modules/makesetup Python-3.5.2/Modules/makesetup
--- Python-3.5.2-orig/Modules/makesetup 2016-06-26 00:38:38.000000000 +0300
+++ Python-3.5.2/Modules/makesetup 2016-07-12 14:21:03.740800700 +0300
@@ -91,7 +91,7 @@
else
ExtraLibDir='$(LIBPL)'
fi
- ExtraLibs="-L$ExtraLibDir -lpython\$(VERSION)";;
+ ExtraLibs="-L$ExtraLibDir -lpython\$(LDVERSION)";;
esac
# Main loop