Skip to content

Commit a614cc9

Browse files
[2.7] closes bpo-35139: The pyexpat module's macros in Modules/Setup now match setup.py (GH-10293)
This could cause compile errors on macOS or other platforms.. (cherry picked from commit 318ab63) Co-authored-by: Max Bélanger <[email protected]>
1 parent aa39c1a commit a614cc9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a compiler error when statically linking `pyexpat` in `Modules/Setup`.

Modules/Setup.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ GLHACK=-Dclear=__GLclear
469469
# Interface to the Expat XML parser
470470
# More information on Expat can be found at www.libexpat.org.
471471
#
472-
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
472+
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY=1 -DUSE_PYEXPAT_CAPI
473473

474474

475475
# Hye-Shik Chang's CJKCodecs

0 commit comments

Comments
 (0)