From 5eee02bc40184f877d1de17777d446adfc2a36af Mon Sep 17 00:00:00 2001 From: Christopher Allen Lane Date: Sun, 15 Feb 2026 06:39:20 -0500 Subject: [PATCH] build: produce static binaries with CGO_ENABLED=0 Eliminates glibc version mismatch errors when running release binaries on systems with older glibc versions. Closes #744 Co-Authored-By: Claude Opus 4.6 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6c54f0d..ffc3ba2 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,7 @@ ZIP := zip -m docker_image := cheat-devel:latest # build flags +export CGO_ENABLED := 0 BUILD_FLAGS := -ldflags="-s -w" -mod vendor -trimpath GOBIN := TMPDIR := /tmp