[Python-checkins] [3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)

ambv webhook-mailer at python.org
Wed Sep 29 10:13:47 EDT 2021


https://github.com/python/cpython/commit/412ae8ab10734b72384c969181919cc4eb154406
commit: 412ae8ab10734b72384c969181919cc4eb154406
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-29T16:13:41+02:00
summary:

[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)

* bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit 6c1154b9de29e1c9cd3d05f5289543e5cff73895)

Co-authored-by: Pablo Galindo Salgado <Pablogsal at gmail.com>
Co-authored-by: Łukasz Langa <lukasz at langa.pl>

files:
M setup.py

diff --git a/setup.py b/setup.py
index 3d250e7249d70..a6fcc12b84d0c 100644
--- a/setup.py
+++ b/setup.py
@@ -1765,7 +1765,9 @@ def detect_expat_elementtree(self):
                 ('XML_POOR_ENTROPY', '1'),
             ]
             extra_compile_args = []
-            expat_lib = []
+            # bpo-44394: libexpat uses isnan() of math.h and needs linkage
+            # against the libm
+            expat_lib = ['m']
             expat_sources = ['expat/xmlparse.c',
                              'expat/xmlrole.c',
                              'expat/xmltok.c']



More information about the Python-checkins mailing list