]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados/librados_c: check .symver support using cmake 41033/head
authorKefu Chai <kchai@redhat.com>
Tue, 27 Apr 2021 03:15:32 +0000 (11:15 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 00:16:12 +0000 (08:16 +0800)
commitd0858dbfb4b76a6e3d0b6001316e0f08703f3a26
treed51f338afb1df07022246a0bcd06be51618ae0d9
parent7c0ed157d75df24994a2cad4f601a9e57daf7236
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>
cmake/modules/CephChecks.cmake
src/include/config-h.in.cmake
src/librados/librados_c.cc