Skip to content

Commit 04c9666

Browse files
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. (cherry picked from commit 318ab63) Co-authored-by: Max Bélanger <[email protected]>
1 parent b9c48a7 commit 04c9666

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
@@ -340,7 +340,7 @@ _symtable symtablemodule.c
340340
# Interface to the Expat XML parser
341341
# More information on Expat can be found at www.libexpat.org.
342342
#
343-
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
343+
#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
344344

345345
# Hye-Shik Chang's CJKCodecs
346346

0 commit comments

Comments
 (0)