]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake/modules/BuildSPDK.cmake: link whole-archive 44572/head
authorTongliang Deng <dengtongliang@gmail.com>
Thu, 13 Jan 2022 09:01:52 +0000 (17:01 +0800)
committerTongliang Deng <dengtongliang@gmail.com>
Thu, 20 Jan 2022 11:39:27 +0000 (19:39 +0800)
commite82b0a7b094361a5195694691761b02d3413c299
tree54e66aa920b6eb57f82caf1ab415f83aa91ab17a
parentac283562349d566fb19b6c962e7720107c9fb3c5
cmake/modules/BuildSPDK.cmake: link whole-archive

We build spdk as static library, linking against them requires the
use of `-Wl,--whole-archive` as argument, otherwise we will have error
`nvme.c: nvme_probe_internal: *ERROR*: NVMe trtype 256 not available`.
This is due to the use of constructor functions in spdk to register
NVMe transports. So we need to do so to ensure we call all the
constructors.

Signed-off-by: Tongliang Deng <dengtongliang@sensetime.com>
cmake/modules/BuildSPDK.cmake
src/blk/CMakeLists.txt