diff --git a/CMakeLists.txt b/CMakeLists.txt index de4ccb400..da16fed39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -348,7 +348,7 @@ elseif (WIN32) set(PLATFORM_LIBRARIES winmm ws2_32) if (MINGW) # PSAPI is the Process Status API - set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version) + set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version crypt32) endif() elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$") set(PLATFORM_LIBRARIES rt) diff --git a/build-libretro-windows.sh b/build-libretro-windows.sh index a7ec231ff..b884cea7b 100755 --- a/build-libretro-windows.sh +++ b/build-libretro-windows.sh @@ -5,7 +5,7 @@ set -e cd $(dirname $0) mkdir -p build-windows && cd build-windows cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeModules/x86_64-w64-mingw32.cmake \ - -DCITRA_WARNINGS_AS_ERRORS=OFF -DDISABLE_CLANG_TARGET=ON \ + -DCITRA_WARNINGS_AS_ERRORS=OFF -DDISABLE_CLANG_TARGET=ON -DENABLE_LTO=OFF \ -DENABLE_TESTS=OFF -DENABLE_DEDICATED_ROOM=OFF \ -DENABLE_SDL2=OFF -DENABLE_QT=OFF -DENABLE_WEB_SERVICE=OFF -DENABLE_SCRIPTING=OFF \ -DENABLE_OPENAL=OFF -DENABLE_LIBUSB=OFF -DCITRA_ENABLE_BUNDLE_TARGET=OFF \ @@ -13,6 +13,6 @@ cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeModules/x86_64-w64-mingw32.cmake \ .. make -j$(nproc) -#SO=citra_libretro.dll -#echo "Core file is here => $(readlink -f $SO)" -#x86_64-w64-mingw32-strip $SO +SO=bin/Release/citra_libretro.dll +echo "Core file is here => $(readlink -f $SO)" +x86_64-w64-mingw32-strip $SO