Skip to content

Commit 008552d

Browse files
Roumen Petrovmingwandroid
authored andcommitted
CYGWIN-issue13756: Python make fail on cygwin
1 parent beed95f commit 008552d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

Lib/distutils/command/build_ext.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -695,13 +695,6 @@ def get_libraries(self, ext):
695695
return ext.libraries + [pythonlib]
696696
else:
697697
return ext.libraries
698-
elif sys.platform[:6] == "cygwin":
699-
template = "python%d.%d"
700-
pythonlib = (template %
701-
(sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
702-
# don't extend ext.libraries, it may be shared with other
703-
# extensions, it is a reference to the original list
704-
return ext.libraries + [pythonlib]
705698
elif sys.platform[:6] == "atheos":
706699
from distutils import sysconfig
707700

Makefile.pre.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
635635
$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
636636
$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
637637

638-
# This rule builds the Cygwin Python DLL and import library if configured
638+
# This rule builds the Python DLL and import library if configured
639639
# for a shared core library; otherwise, this rule is a noop.
640-
$(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
640+
$(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
641641
if test -n "$(DLLLIBRARY)"; then \
642642
$(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
643643
$(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \

Modules/makesetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CYGWIN*) if test $libdir = .
9191
else
9292
ExtraLibDir='$(LIBPL)'
9393
fi
94-
ExtraLibs="-L$ExtraLibDir -lpython\$(VERSION)";;
94+
ExtraLibs="-L$ExtraLibDir -lpython\$(LDVERSION)";;
9595
esac
9696

9797
# Main loop

0 commit comments

Comments
 (0)