[Python-checkins] bpo-44394: Ensure libexpat is linked against libm (GH-28617)
pablogsal
webhook-mailer at python.org
Wed Sep 29 09:18:49 EDT 2021
https://github.com/python/cpython/commit/6c1154b9de29e1c9cd3d05f5289543e5cff73895
commit: 6c1154b9de29e1c9cd3d05f5289543e5cff73895
branch: main
author: Pablo Galindo Salgado <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-09-29T14:18:33+01:00
summary:
bpo-44394: Ensure libexpat is linked against libm (GH-28617)
files:
M setup.py
diff --git a/setup.py b/setup.py
index 9e411cb35e00b..9e71a223c0aab 100644
--- a/setup.py
+++ b/setup.py
@@ -1767,7 +1767,9 @@ def detect_expat_elementtree(self):
('XML_POOR_ENTROPY', '1'),
]
extra_compile_args = []
- expat_lib = []
+ # bpo-44394: libexpact 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