]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: test for 16-byte atomic support on mips also 44071/head
authorKefu Chai <tchaikov@gmail.com>
Tue, 23 Nov 2021 16:40:54 +0000 (00:40 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 23 Nov 2021 16:44:04 +0000 (00:44 +0800)
commit709a77f22010f03aee4a4c0ab930588944cb4a58
tree848961ab0375bbb7db9f625d6b5b126b4a3f3d44
parentf600acbba1115e3548ddb6a5c6ec2576f2bc981b
cmake: test for 16-byte atomic support on mips also

it's reported that a mips64el build host is able to pass the test of
CheckCxxAtomic without linking against libatomic, while librbd.so
fails to link due to failures like

/usr/bin/ld: ../../../lib/librbd.so.1.16.0: undefined reference to `__atomic_store_16'
/usr/bin/ld: ../../../lib/librbd.so.1.16.0: undefined reference to `__atomic_load_16'
/usr/bin/ld: ../../../lib/librbd.so.1.16.0: undefined reference to `__atomic_compare_exchange_16'

so we have to check the existence of __atomic_load_16 instruction on
mips architecture.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
cmake/modules/CheckCxxAtomic.cmake