Skip to content

Commit

Permalink
Use -lucrtbase, do not statically link.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Sep 30, 2024
1 parent 26a76f6 commit 29dadaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 29dadaf

Please sign in to comment.