From 71f84588f571c29fc823004a95bbb5b9521e44d2 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 31 Mar 2023 12:24:20 +0800 Subject: [PATCH] Makefile: Disable CGO so to build a static binary --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c3a5edd..3888c44 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ all: - go build -o mirrorselect main.go + CGO_ENABLED=0 go build -o mirrorselect main.go ci: all - GOOS=dragonfly GOARCH=amd64 \ + CGO_ENABLED=0 GOOS=dragonfly GOARCH=amd64 \ go build -o mirrorselect main.go - GOOS=freebsd GOARCH=amd64 \ + CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 \ go build -o mirrorselect main.go clean: