This commit is contained in:
Sergey Zhemoytel 2024-10-22 13:22:35 +00:00
parent b08c8b7ae7
commit ebc6270da1

View file

@ -22,7 +22,9 @@ bep, spf13, and friends in Go.
%build %build
export GOPROXY=https://proxy.golang.org/cached-only export GOPROXY=https://proxy.golang.org/cached-only
CGO_ENABLED=1 go build -ldflags '-s -w' -o ./bin/%{name} . #CGO_ENABLED=1 go build -ldflags '-s -w' -o ./bin/%{name} .
CGO_ENABLED=1 go build -ldflags '-s -w' -tags extended -o ./bin/%{name} .
upx bin/%{name} upx bin/%{name}