]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-35139: The `pyexpat` module's macros in `Modules/Setup` now match `setup...
authorMax Bélanger <aeromax@gmail.com>
Fri, 2 Nov 2018 02:49:46 +0000 (19:49 -0700)
committerBenjamin Peterson <benjamin@python.org>
Fri, 2 Nov 2018 02:49:46 +0000 (19:49 -0700)
This could cause compile errors on macOS or other platforms.

Misc/NEWS.d/next/Build/2018-11-01-15-01-23.bpo-35139.XZTttb.rst [new file with mode: 0644]
Modules/Setup

diff --git a/Misc/NEWS.d/next/Build/2018-11-01-15-01-23.bpo-35139.XZTttb.rst b/Misc/NEWS.d/next/Build/2018-11-01-15-01-23.bpo-35139.XZTttb.rst
new file mode 100644 (file)
index 0000000..aa65088
--- /dev/null
@@ -0,0 +1 @@
+Fix a compiler error when statically linking `pyexpat` in `Modules/Setup`.
index c1804630b903170638742d039ff810d6cd85984b..e2b5f86f38e0fd1e598fc66b95e5c543c3cee118 100644 (file)
@@ -336,7 +336,7 @@ _symtable symtablemodule.c
 # Interface to the Expat XML parser
 # More information on Expat can be found at www.libexpat.org.
 #
-#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
+#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
 
 # Hye-Shik Chang's CJKCodecs