]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: detect linker support 30781/head
authorKefu Chai <kchai@redhat.com>
Tue, 8 Oct 2019 08:04:45 +0000 (16:04 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 8 Oct 2019 13:53:03 +0000 (21:53 +0800)
commita826efc52f53edf59f639e62b6f5b1918fab547f
treeb275e29a0a21ecd6d7779c14b352758623360599
parentd4872ce97a2825afcb58876559cc73aaa1862c0f
cmake: detect linker support

check the linker support of `--version-script` and `--exclude-libs`
flags. and use them only if they are supported.

llvm-ld does not support `--version-script` at this moment. and it's
reported that old versions of llvm-ld do not support `--exclude-libs`
as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/CephCheck_link.c [new file with mode: 0644]
cmake/modules/CephCheck_link.map [new file with mode: 0644]
cmake/modules/CephChecks.cmake
src/librados/CMakeLists.txt