]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (#125416)
authorSam Gross <colesbury@gmail.com>
Tue, 15 Oct 2024 00:09:48 +0000 (20:09 -0400)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2024 00:09:48 +0000 (20:09 -0400)
commit8d42e2d915c3096e7eac1c649751d1da567bb7c3
tree03f0717fa9c1d486058744f8b62c8588beef673e
parent0b28ea4a35dc7c68c97127f7aad8f0175d77c520
gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (#125416)

We previously used `AC_RUN_IF_ELSE` with a short test program to detect
if `-latomic` is needed, but that requires choosing a specific default
value when cross-compiling because the test program is not run.
Some cross compilation targets like `wasm32-emscripten` do not support
`-latomic`, while other cross compilation targets, like
`arm-linux-gnueabi` require it.
Misc/NEWS.d/next/Build/2024-10-13-21-11-30.gh-issue-125269.BC-fdo.rst [new file with mode: 0644]
configure
configure.ac