Skip to content

Commit 412ae8a

Browse files
miss-islingtonpablogsalambv
authored
[3.10] bpo-44394: Ensure libexpat is linked against libm (GH-28617) (GH-28621)
* bpo-44394: Ensure libexpat is linked against libm (GH-28617) (cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
1 parent 2be4c37 commit 412ae8a

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
@@ -1765,7 +1765,9 @@ def detect_expat_elementtree(self):
17651765
('XML_POOR_ENTROPY', '1'),
17661766
]
17671767
extra_compile_args = []
1768-
expat_lib = []
1768+
# bpo-44394: libexpat uses isnan() of math.h and needs linkage
1769+
# against the libm
1770+
expat_lib = ['m']
17691771
expat_sources = ['expat/xmlparse.c',
17701772
'expat/xmlrole.c',
17711773
'expat/xmltok.c']

0 commit comments

Comments
 (0)