-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-44394: Ensure libexpat is linked against libm #28617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1767,7 +1767,7 @@ def detect_expat_elementtree(self): | |||
('XML_POOR_ENTROPY', '1'), | |||
] | |||
extra_compile_args = [] | |||
expat_lib = [] | |||
expat_lib = ['m'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind to add a comment mentioning "bpo-44394: " and explaining that libexpact uses isnan() of math.h?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -1767,7 +1767,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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like it's a recent libexpact change, in version 2.4.0: libexpat/libexpat#511
I don't know if it's worth mentioning it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, I think is good since is the one we use currently in all branches
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10. |
Sorry @pablogsal, I had trouble checking out the |
GH-28619 is a backport of this pull request to the 3.9 branch. |
GH-28620 is a backport of this pull request to the 3.8 branch. |
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]>
Thanks @pablogsal for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
GH-28621 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]>
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]>
(cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]>
…H-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]>
…H-28620) (cherry picked from commit 6c1154b) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
https://bugs.python.org/issue44394
We need to link against
libm
to haveisnan
. See libexpat/libexpat#510