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 <benoit.tigeot@lifen.fr>
pull/32490/head
Benoit Tigeot 1 month ago
parent 2626d58d4d
commit cfd077bb21
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -170,7 +170,6 @@ $(GOIMPORTS):
# release # release
.PHONY: build-cross .PHONY: build-cross
build-cross: LDFLAGS += -extldflags "-static"
build-cross: $(GORELEASER) build-cross: $(GORELEASER)
$(GORELEASER) build --snapshot --clean $(GORELEASER) build --snapshot --clean

Loading…
Cancel
Save