]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Oct 2024 09:29:03 +0000 (11:29 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2024 09:29:03 +0000 (11:29 +0200)
commit8cf646adeab0e5a368cc2875068a725a324fc7c1
tree32acedeb756799d8ca40752a8c047d4359c26bc2
parent4bc59e5fd7add7c8a60f3636853163d1d5806ce0
[3.13] gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-125416) (#125493)

gh-125269: Use `AC_LINK_IF_ELSE` to detect if `-latomic` is needed (GH-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.
(cherry picked from commit 8d42e2d915c3096e7eac1c649751d1da567bb7c3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
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