Check for libatomic dependency for atomic operations
Based on !4972 (closed) and this patch. The MR template requires commits to be individually buildable so the original change was squashed, but the commit message is preserved.
Tested locally on Arch Linux with ./configure --target=riscv64-linux-gnu
, "quick" flavour, and make
.
Fixes #19119 (closed).