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.
S
Sam Gross committed
8d42e2d915c3096e7eac1c649751d1da567bb7c3
Parent: 0b28ea4
Committed by GitHub <noreply@github.com>
on 10/15/2024, 12:09:48 AM