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:
@@ -23,6 +23,9 @@ target_link_libraries(86Box PkgConfig::SLIRP)
|
|||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(PkgConfig::SLIRP INTERFACE wsock32 ws2_32 iphlpapi iconv)
|
target_link_libraries(PkgConfig::SLIRP INTERFACE wsock32 ws2_32 iphlpapi iconv)
|
||||||
|
if(STATIC_BUILD)
|
||||||
|
add_compile_definitions(LIBSLIRP_STATIC)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (HAIKU)
|
if (HAIKU)
|
||||||
|
Reference in New Issue
Block a user