makefile: use cgo for windows build

This commit is contained in:
mappu 2024-06-29 12:54:47 +12:00
parent e15af5a544
commit 71c182692a

View File

@ -21,7 +21,7 @@ yvbolt: $(SOURCES)
upx --best yvbolt upx --best yvbolt
yvbolt.exe: $(SOURCES) yvbolt.exe: $(SOURCES)
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags '-s -w' GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc-win32 go build -trimpath -ldflags '-s -w'
upx --best yvbolt.exe upx --best yvbolt.exe
yvbolt.linux64.tar.xz: yvbolt liblcl.so yvbolt.linux64.tar.xz: yvbolt liblcl.so