From: Pablo Galindo Salgado Date: Wed, 29 Sep 2021 13:18:33 +0000 (+0100) Subject: bpo-44394: Ensure libexpat is linked against libm (GH-28617) X-Git-Tag: v3.11.0a1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1154b9de29e1c9cd3d05f5289543e5cff73895;p=thirdparty%2FPython%2Fcpython.git bpo-44394: Ensure libexpat is linked against libm (GH-28617) --- diff --git a/setup.py b/setup.py index 9e411cb35e00..9e71a223c0aa 100644 --- a/setup.py +++ b/setup.py @@ -1767,7 +1767,9 @@ class PyBuildExt(build_ext): ('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']