makefile: use cgo for windows build
This commit is contained in:
parent
e15af5a544
commit
71c182692a
2
Makefile
2
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user