[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>
M
Miss Islington (bot) committed
8cf646adeab0e5a368cc2875068a725a324fc7c1
Parent: 4bc59e5
Committed by GitHub <noreply@github.com>
on 10/15/2024, 9:29:03 AM