Merge LDFLAGS from env into build
This commit is contained in:
parent
1b50f14d55
commit
5003809e97
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ endif
|
|||
|
||||
TELEGRAF := telegraf$(shell go tool dist env | grep -q 'GOOS=.windows.' && echo .exe)
|
||||
|
||||
LDFLAGS := -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)
|
||||
LDFLAGS := $(LDFLAGS) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)
|
||||
ifdef VERSION
|
||||
LDFLAGS += -X main.version=$(VERSION)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue