Skip to content

Commit 6c1154b

Browse files
authored
bpo-44394: Ensure libexpat is linked against libm (GH-28617)
1 parent f76889a commit 6c1154b

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
@@ -1767,7 +1767,9 @@ def detect_expat_elementtree(self):
17671767
('XML_POOR_ENTROPY', '1'),
17681768
]
17691769
extra_compile_args = []
1770-
expat_lib = []
1770+
# bpo-44394: libexpact uses isnan() of math.h and needs linkage
1771+
# against the libm
1772+
expat_lib = ['m']
17711773
expat_sources = ['expat/xmlparse.c',
17721774
'expat/xmlrole.c',
17731775
'expat/xmltok.c']

0 commit comments

Comments
 (0)