From 71c182692aaea7aeff0e84e7c8d7e0b633664b01 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 29 Jun 2024 12:54:47 +1200 Subject: [PATCH] makefile: use cgo for windows build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 286e5e4..8de97c3 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ yvbolt: $(SOURCES) upx --best yvbolt 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 yvbolt.linux64.tar.xz: yvbolt liblcl.so