for instance, GCC-8 on riscv64 does not offer atomic ops like __atomic_fetch_or_1, so we need to link against libatomic to get access to these symbols. Signed-off-by: Kefu Chai <kchai@redhat.com>