From ef2d863e840ad9d76470386cb948a83a0fce28c6 Mon Sep 17 00:00:00 2001 From: crueter Date: Wed, 12 Nov 2025 12:54:14 -0500 Subject: [PATCH] fix Signed-off-by: crueter --- CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ff0667d8e8..e5f30a687b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,6 +173,19 @@ if (YUZU_STATIC_BUILD) endif() endif() +## certain libraries need extra static libs to be linked ## +if (YUZU_STATIC_BUILD AND MINGW) + macro(extra_libs) + foreach(lib ${ARGN}) + find_library(${lib}_LIBRARY ${lib} REQUIRED) + link_libraries(${${lib}_LIBRARY}) + endforeach() + endmacro() + + # ffmpeg + extra_libs(iconv) +endif() + # Detect current compilation architecture and create standard definitions # =======================================================================