Skip to content

Commit 318ab63

Browse files
maxbelangerbenjaminp
authored andcommitted
closes bpo-35139: The pyexpat module's macros in Modules/Setup now match setup.py (GH-10289)
This could cause compile errors on macOS or other platforms.
1 parent dce345c commit 318ab63

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ _symtable symtablemodule.c
336336
# Interface to the Expat XML parser
337337
# More information on Expat can be found at www.libexpat.org.
338338
#
339-
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
339+
#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
340340

341341
# Hye-Shik Chang's CJKCodecs
342342

0 commit comments

Comments
 (0)