From 350f8ab3d6fe873eb21d3869c6724d4bb6bcfb00 Mon Sep 17 00:00:00 2001 From: Jake Sanders <1200829+dekkagaijin@users.noreply.github.com> Date: Thu, 19 Apr 2018 09:04:45 -0700 Subject: [PATCH] Omit debugging symbols for maximum small bins (#97) * Omit debugging symbols for maximum small bins * Update Makefile add comment --- Makefile | 1 + 1 file changed, 1 insertion(+) 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"