From 9bdb7affb110b4a5b47d706c7ce67193b556617d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 20 Apr 2017 14:42:10 -0700 Subject: [PATCH] build: Fix add macOS source work-around for Go bug. (#2138) Upstream bug https://github.com/golang/go/issues/19734 Fixes #2137 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5940d0addf..ffb3d0c28f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ LDFLAGS := $(shell go run buildscripts/gen-ldflags.go) +BUILD_LDFLAGS := '$(LDFLAGS) -s -w' all: install @@ -59,7 +60,7 @@ test: getdeps verifiers gomake-all: build @echo "Installing mc:" - @go build --ldflags "$(LDFLAGS)" -o $(GOPATH)/bin/mc + @go build --ldflags $(BUILD_LDFLAGS) -o $(GOPATH)/bin/mc @mkdir -p $(HOME)/.mc coverage: getdeps verifiers