ceph/cmake
Tongliang Deng e82b0a7b09 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>
2022-01-20 19:39:27 +08:00
..
modules cmake/modules/BuildSPDK.cmake: link whole-archive 2022-01-20 19:39:27 +08:00