]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: avoid duplicate symbols
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 11 Apr 2023 08:39:10 +0000 (08:39 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 30 Aug 2023 12:59:00 +0000 (12:59 +0000)
commit936252524e9059ad90c8ba140ca45e7ff2f31105
treea00cd00050881e90ba60256eaee5aca24a20e8f1
parenta09b70dfd8ebfab3b641206568a8c6f9b3d6404d
cmake: avoid duplicate symbols

Some symbols from the crc32, arch and fmt libs
are re-exported by libceph-common:

  FAILED: bin/unittest_time.exe
  ld.lld: error: fmt::v9::format_error::~format_error() was replaced

llvm throws errors because of the duplicate symbols.
One workaround is to use objects instead of static libs
for the libs. For libfmt we'll use the header-only version.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/arch/CMakeLists.txt
src/common/CMakeLists.txt
src/crimson/CMakeLists.txt
win32_build.sh