diff --git a/Makefile b/Makefile index 06b8c78c5..a37e20622 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ REPOPATH ?= $(ORG)/$(PROJECT) GO_FILES := $(shell find . -type f -name '*.go' -not -path "./vendor/*") GO_LDFLAGS := '-extldflags "-static" GO_LDFLAGS += -X $(VERSION_PACKAGE).version=$(VERSION) +GO_LDFLAGS += -w -s # Drop debugging symbols. GO_LDFLAGS += ' GO_BUILD_TAGS := "containers_image_ostree_stub containers_image_openpgp exclude_graphdriver_devicemapper exclude_graphdriver_btrfs exclude_graphdriver_overlay"