Skip to content

Commit 9bdb7af

Browse files
harshavardhanavadmeste
authored andcommitted
build: Fix add macOS source work-around for Go bug. (#2138)
Upstream bug golang/go#19734 Fixes #2137
1 parent 9a88156 commit 9bdb7af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
2+
BUILD_LDFLAGS := '$(LDFLAGS) -s -w'
23

34
all: install
45

@@ -59,7 +60,7 @@ test: getdeps verifiers
5960

6061
gomake-all: build
6162
@echo "Installing mc:"
62-
@go build --ldflags "$(LDFLAGS)" -o $(GOPATH)/bin/mc
63+
@go build --ldflags $(BUILD_LDFLAGS) -o $(GOPATH)/bin/mc
6364
@mkdir -p $(HOME)/.mc
6465

6566
coverage: getdeps verifiers

0 commit comments

Comments
 (0)