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
This commit is contained in:
Alexander Babikov
2024-07-15 10:53:57 +05:00
parent 70bc4ef0be
commit 0177e2881a

View File

@@ -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)