From cfd077bb2170f1a091327a5d5e2eb385a0a39c84 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 29 Jul 2026 16:48:57 +0200 Subject: [PATCH] build: drop ldflags prereq goreleaser ignores build-cross now runs goreleaser exclusively, and goreleaser sources linker flags from .goreleaser.yaml (builds.ldflags), not the Makefile LDFLAGS variable. The build-cross: LDFLAGS += -extldflags "-static" prerequisite was a leftover from the mitchellh/gox era (075c096af) and has had no effect since. Static linking is already set in .goreleaser.yaml, so this only removes dead wiring. Signed-off-by: Benoit Tigeot --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index d6def960c..f7e23cefb 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,6 @@ $(GOIMPORTS): # release .PHONY: build-cross -build-cross: LDFLAGS += -extldflags "-static" build-cross: $(GORELEASER) $(GORELEASER) build --snapshot --clean