diff --git a/setup.py b/setup.py index 54d4b942bd5afe..2bb71dde18d378 100644 --- a/setup.py +++ b/setup.py @@ -1686,7 +1686,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']