Skip to content

gh-109054: configure checks if libatomic is needed#109101

Merged
vstinner merged 3 commits intopython:mainfrom
vstinner:configure_libatomic
Sep 8, 2023
Merged

gh-109054: configure checks if libatomic is needed#109101
vstinner merged 3 commits intopython:mainfrom
vstinner:configure_libatomic

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 7, 2023

Fix building the _testcapi extension on Linux armv6a which requires linking to libatomic when <cpython/pyatomic.h> is used: the _Py_atomic_or_uint8() function requires libatomic __atomic_fetch_or_8() on this platform.

The configure script now checks if linking to libatomic is needed and generates a new LIBATOMIC variable used to build the _testcapi extension.

Building the _testcapi extension now uses the LIBATOMIC variable in its LDFLAGS, since Modules/_testcapi/pyatomic.c uses <cpython/pyatomic.h>.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants