From 29dadaf25bf86544de8489bdd688031c809f9f58 Mon Sep 17 00:00:00 2001 From: Aetopia <41850963+Aetopia@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:04:04 +0530 Subject: [PATCH] Use -lucrtbase, do not statically link. --- src/Build.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Build.cmd b/src/Build.cmd index 270fa41..30feb0a 100644 --- a/src/Build.cmd +++ b/src/Build.cmd @@ -6,7 +6,7 @@ mkdir "bin">nul 2>&1 echo Compiling "Stonecutter.Game.dll"... windres.exe -i "Resources\Stonecutter.Game.rc" -o "%TEMP%\.o" -gcc.exe -Os -Wl,--gc-sections -shared -nostdlib -static -s "Stonecutter.Game.c" "%TEMP%\.o" -lMinHook -lKernel32 -lucrt -lUser32 -lDXGI -lD3D11 -o "bin\Stonecutter.Game.dll" +gcc.exe -Os -Wl,--gc-sections -shared -nostdlib -static -s "Stonecutter.Game.c" "%TEMP%\.o" -lMinHook -lKernel32 -lucrtbase -lUser32 -lDXGI -lD3D11 -o "bin\Stonecutter.Game.dll" echo Compiling "Stonecutter.Display.exe"... windres.exe -i "Resources\Stonecutter.Display.rc" -o "%TEMP%\.o"