From f9230e927a943bb7ec1195479cc7adf21715ea7b Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Wed, 29 Sep 2021 14:18:33 +0100 Subject: [PATCH 1/2] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (cherry picked from commit 6c1154b9de29e1c9cd3d05f5289543e5cff73895) Co-authored-by: Pablo Galindo Salgado --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2d6b05682d2ba9d..3f99a9cc18f2745 100644 --- a/setup.py +++ b/setup.py @@ -1578,7 +1578,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'] From adfb7d2d2c96456df5c29324788e35bcae3b28ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 29 Sep 2021 15:49:40 +0200 Subject: [PATCH 2/2] s/libexpact/libexpat/ --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3f99a9cc18f2745..57be07a7e0f8244 100644 --- a/setup.py +++ b/setup.py @@ -1578,7 +1578,7 @@ def detect_expat_elementtree(self): ('XML_POOR_ENTROPY', '1'), ] extra_compile_args = [] - # bpo-44394: libexpact uses isnan() of math.h and needs linkage + # bpo-44394: libexpat uses isnan() of math.h and needs linkage # against the libm expat_lib = ['m'] expat_sources = ['expat/xmlparse.c',