Skip to content

Commit 90004fc

Browse files
miss-islingtonpablogsalambv
authored
[3.8] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28620)
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
1 parent 456d6d9 commit 90004fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,9 @@ def detect_expat_elementtree(self):
15781578
('XML_POOR_ENTROPY', '1'),
15791579
]
15801580
extra_compile_args = []
1581-
expat_lib = []
1581+
# bpo-44394: libexpat uses isnan() of math.h and needs linkage
1582+
# against the libm
1583+
expat_lib = ['m']
15821584
expat_sources = ['expat/xmlparse.c',
15831585
'expat/xmlrole.c',
15841586
'expat/xmltok.c']

0 commit comments

Comments
 (0)