From 0177e2881a6e830f412258456b79f9588e8104b8 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Mon, 15 Jul 2024 10:53:57 +0500 Subject: [PATCH] Define LIBSLIRP_STATIC on Windows for proper static linking This requires a not-yet-released version of libslirp, but thankfully MSYS2 has backported the patch --- src/network/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt index e407d4364..0783e4b4c 100644 --- a/src/network/CMakeLists.txt +++ b/src/network/CMakeLists.txt @@ -23,6 +23,9 @@ target_link_libraries(86Box PkgConfig::SLIRP) if(WIN32) target_link_libraries(PkgConfig::SLIRP INTERFACE wsock32 ws2_32 iphlpapi iconv) + if(STATIC_BUILD) + add_compile_definitions(LIBSLIRP_STATIC) + endif() endif() if (HAIKU)