diff --git a/Makefile b/Makefile index f82dbe8f..bfd64cf5 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,10 @@ ifneq ($(GO_BUILD_TAGS),) GO_BUILD_TAGS := -tags "$(GO_BUILD_TAGS)" endif +ifeq ($(debug), 1) + GO_BUILD_TAGS += -gcflags="all=-N -l" +endif + IMPORT_PATH := github.com/cloudflare/cloudflared PACKAGE_DIR := $(CURDIR)/packaging PREFIX := /usr