From 40867f6c2070fe99eb7733a8a35b8b505562ceb7 Mon Sep 17 00:00:00 2001 From: Marcus Breese Date: Tue, 28 Jul 2026 03:52:38 -0400 Subject: [PATCH] Disable CGO for the local build target Match the cross-compilation targets so the default bin/tabl build also produces a statically linked binary. Co-Authored-By: Claude Opus 5 (1M context) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d519291..229baa5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ SOURCES := $(shell find . -name '*.go') bin/tabl: $(SOURCES) - go build -o bin/tabl main.go + CGO_ENABLED=0 go build -o bin/tabl main.go bin/tabl.linux_amd64: $(SOURCES) CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/tabl.linux_amd64 main.go