]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: should link against libatomic if libcxx/libstdc++ does not offer atomic ops 22952/head
authorKefu Chai <kchai@redhat.com>
Mon, 9 Jul 2018 17:17:54 +0000 (01:17 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 9 Jul 2018 17:37:00 +0000 (01:37 +0800)
commit16976bd42a4db57ffda70267c592c0090b9602b5
treef2cb9be4a10d91055e7d3f4671af668fab856892
parent975528f632f73fbffa3f1fee304e3bbe3296cffc
cmake: should link against libatomic if libcxx/libstdc++ does not offer atomic ops

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>
CMakeLists.txt
cmake/modules/CheckCxxAtomic.cmake [new file with mode: 0644]