]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: fix mingw-llvm shared linking
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 23 Aug 2023 14:21:12 +0000 (14:21 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 30 Aug 2023 12:59:00 +0000 (12:59 +0000)
commitec4a2778f6c6a60763049e37a9cfa48fba31b404
treef2c3ca9041e5705ffe1ed33df23ae76ef212d767
parent4b43afd509a4faf1354f96d5bf560bca5b08d5b9
cmake: fix mingw-llvm shared linking

mingw-llvm can't handle the '--exclude-libs' linker flag, so
we'll have to skip it.

At the same time, cmake can't locate the boost shared libs as the
import libs are not generated when using mingw-llvm due to boost's
clang-linux.jam file. For now, we'll patch the cmake files, using
the dlls as import libs (which is allowed by mingw).

While at it, we'll avoid linking the static AND dynamic boost libs,
speeding the build.

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