From 1290f76875367db069adf506a12dfbf5ee880162 Mon Sep 17 00:00:00 2001 From: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:33:50 +0200 Subject: [PATCH] build: disable CGO for CRT release --- GNUmakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/GNUmakefile b/GNUmakefile index 039dea62..0cfe99a4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -102,6 +102,7 @@ endif dist/%/nomad-driver-podman: GO_OUT ?= $@ dist/%/nomad-driver-podman: @echo "==> RELEASE BUILD of $@ ..." + CGO_ENABLED=0 \ GOOS=linux GOARCH=$(lastword $(subst _, ,$*)) \ go build -trimpath -o $(GO_OUT)