Commit 65ffb7de authored by Srinivasan Muralidharan's avatar Srinivasan Muralidharan
Browse files

[FAB-5114] Makefile fix for right version computation



peer exe follows a different metadata pattern than other exes
such as configtxgen, cryptogen etc. The fix sets GO_LDFLAGS
for each binary production so peer's GO_LDFLAGS can be different
from other binaries.

. made one scoped change for peer production per Gari's comment

Change-Id: I899580796aa20ff299f1a69bf1762dae3a196e84
Signed-off-by: default avatarSrinivasan Muralidharan <muralisr@us.ibm.com>
parent b93fb81c
......@@ -350,6 +350,8 @@ release/%/bin/orderer: $(PROJECT_FILES)
mkdir -p $(@D)
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))
release/%/bin/peer: GO_LDFLAGS = $(patsubst %,-X $(PKGNAME)/common/metadata.%,$(METADATA_VAR))
release/%/bin/peer: $(PROJECT_FILES)
@echo "Building $@ for $(GOOS)-$(GOARCH)"
mkdir -p $(@D)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment