Skip to content

Commit

Permalink
mk: fix debug cflags
Browse files Browse the repository at this point in the history
The correct syntax to apply gcflags to all files is "all" not "*".

Signed-off-by: Robin Jarry <[email protected]>
Acked-by: Tim Culverhouse <[email protected]>
  • Loading branch information
rjarry authored and rockorager committed Oct 17, 2024
1 parent 8060cbe commit e5354e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5354e8

Please sign in to comment.