]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados/librados_c: check .symver support using cmake
authorKefu Chai <kchai@redhat.com>
Tue, 27 Apr 2021 03:15:32 +0000 (11:15 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 31 Aug 2022 12:36:53 +0000 (20:36 +0800)
commitb6b1b1eb04cb7d01c110c0ea98792223ee188fe4
tree2ba957df207988141124e393736e14f8b4bc0475
parent23ad11f5e7dd67528653a8619b8c7d9d908b9173
librados/librados_c: check .symver support using cmake

the __asm__(".asmver ..") is a support provided by the compiler, so
would be better to detect it by either checking the compiler identifer
or just try it out.

in this change, instead of checking the building platform, we check this
feature using check_c_source_compiles().

in future, we could support versioned symbols using function attriubte
or symbol tables or version-script.

on platform where symbol versioning is not supported, we might need to
go with a different approach.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d0858dbfb4b76a6e3d0b6001316e0f08703f3a26)
cmake/modules/CephChecks.cmake
src/include/config-h.in.cmake
src/librados/librados_c.cc