summaryrefslogtreecommitdiffstats
path: root/win32_build.sh
diff options
context:
space:
mode:
authorLucian Petrut <lpetrut@cloudbasesolutions.com>2023-04-11 10:39:10 +0200
committerLucian Petrut <lpetrut@cloudbasesolutions.com>2023-08-30 14:59:00 +0200
commit936252524e9059ad90c8ba140ca45e7ff2f31105 (patch)
treea00cd00050881e90ba60256eaee5aca24a20e8f1 /win32_build.sh
parentcmake: honor WITH_FMT_HEADER_ONLY with vendored fmt lib (diff)
downloadceph-936252524e9059ad90c8ba140ca45e7ff2f31105.tar.xz
ceph-936252524e9059ad90c8ba140ca45e7ff2f31105.zip
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>
Diffstat (limited to 'win32_build.sh')
-rwxr-xr-xwin32_build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32_build.sh b/win32_build.sh
index 3644074ef44..c29b5849172 100755
--- a/win32_build.sh
+++ b/win32_build.sh
@@ -161,6 +161,7 @@ fi
cmake -D CMAKE_PREFIX_PATH=$depsDirs \
-D MINGW_LINK_DIRECTORIES="$linkDirs" \
-D CMAKE_TOOLCHAIN_FILE="$MINGW_CMAKE_FILE" \
+ -D WITH_FMT_HEADER_ONLY=ON \
-D WITH_LIBCEPHSQLITE=OFF \
-D WITH_RDMA=OFF -D WITH_OPENLDAP=OFF \
-D WITH_GSSAPI=OFF -D WITH_XFS=OFF \