Skip to content

Commit fafa213

Browse files
bpo-44394: Ensure libexpat is linked against libm (GH-28617)
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]>
1 parent 7bff4d3 commit fafa213

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
@@ -1686,7 +1686,9 @@ def detect_expat_elementtree(self):
16861686
('XML_POOR_ENTROPY', '1'),
16871687
]
16881688
extra_compile_args = []
1689-
expat_lib = []
1689+
# bpo-44394: libexpact uses isnan() of math.h and needs linkage
1690+
# against the libm
1691+
expat_lib = ['m']
16901692
expat_sources = ['expat/xmlparse.c',
16911693
'expat/xmlrole.c',
16921694
'expat/xmltok.c']

0 commit comments

Comments
 (0)