Guest User

Untitled

a guest
Jan 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. # HG changeset patch
  2. # Date 1315917931 -32400
  3. # Branch 3.2
  4. # Node ID 8b950b66853c1f32c420e5fbc6e21ee88162ef96
  5. # Parent 137e45f15c0bd262c9ad4c032d97425bc0589456
  6. Fix cygwin build bug
  7.  
  8. diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
  9. --- a/Lib/distutils/command/build_ext.py
  10. +++ b/Lib/distutils/command/build_ext.py
  11. @@ -721,9 +721,10 @@
  12. # extensions, it is a reference to the original list
  13. return ext.libraries + [pythonlib]
  14. elif sys.platform[:6] == "cygwin":
  15. - template = "python%d.%d"
  16. + template = "python%d.%d%s"
  17. pythonlib = (template %
  18. - (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
  19. + (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff,
  20. + sys.abiflags))
  21. # don't extend ext.libraries, it may be shared with other
  22. # extensions, it is a reference to the original list
  23. return ext.libraries + [pythonlib]
  24. diff --git a/Makefile.pre.in b/Makefile.pre.in
  25. --- a/Makefile.pre.in
  26. +++ b/Makefile.pre.in
  27. @@ -504,7 +504,7 @@
  28.  
  29. # This rule builds the Cygwin Python DLL and import library if configured
  30. # for a shared core library; otherwise, this rule is a noop.
  31. -$(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
  32. +$(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
  33. if test -n "$(DLLLIBRARY)"; then \
  34. $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \
  35. $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \
  36. diff --git a/Modules/makesetup b/Modules/makesetup
  37. --- a/Modules/makesetup
  38. +++ b/Modules/makesetup
  39. @@ -91,7 +91,7 @@
  40. else
  41. ExtraLibDir='$(LIBPL)'
  42. fi
  43. - ExtraLibs="-L$ExtraLibDir -lpython\$(VERSION)";;
  44. + ExtraLibs="-L$ExtraLibDir -lpython\$(LDVERSION)";;
  45. esac
  46.  
  47. # Main loop
Add Comment
Please, Sign In to add comment