[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 6c1154b9de)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
Miss Islington (bot) 2021-09-29 07:13:41 -07:00 committed by GitHub
parent 2be4c370c6
commit 412ae8ab10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1765,7 +1765,9 @@ class PyBuildExt(build_ext):
('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']