diff --git a/Makefile b/Makefile index 469a7b469..1af851082 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,9 @@ MODULES:= CLEAN:= BINS:= -ldflags=-X="github.com/filecoin-project/lotus/build".CurrentCommit="+git$(subst -,.,$(shell git describe --always --match=NeVeRmAtCh --dirty 2>/dev/null || git rev-parse --short HEAD 2>/dev/null))" +ldflags=-X=github.com/filecoin-project/lotus/build.CurrentCommit='+git$(subst -,.,$(shell git describe --always --match=NeVeRmAtCh --dirty 2>/dev/null || git rev-parse --short HEAD 2>/dev/null))' ifneq ($(strip $(LDFLAGS)),) - ldflags+=-extldflags="$(LDFLAGS)" + ldflags+=-extldflags=$(LDFLAGS) endif GOFLAGS+=-ldflags="$(ldflags)"