From e5354e8ec8833b25692fffb958517c3a27f79b5a Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Thu, 3 Oct 2024 20:57:03 +0200 Subject: [PATCH] mk: fix debug cflags The correct syntax to apply gcflags to all files is "all" not "*". Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 7b79adeb..3d3349bc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -75,7 +75,7 @@ debug: aerc.debug @echo ' dlv attach $$(pidof aerc.debug)' aerc.debug: $(gosrc) - $(GO) build $(subst -trimpath,,$(GOFLAGS)) -gcflags=*=-N -gcflags=*=-l -ldflags="$(GO_LDFLAGS)" -o aerc.debug + $(GO) build $(subst -trimpath,,$(GOFLAGS)) -gcflags=all="-N -l" -ldflags="$(GO_LDFLAGS)" -o aerc.debug .PHONY: doc doc: $(docs)