aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegraf/telegraf-makefile-ldflags.patch
blob: de5e8d59e1ffc610d0b9fcd0237450f76b58c746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -urp a/Makefile b/Makefile
--- a/Makefile	1970-01-01 00:00:00.000000000 +0000
+++ b/Makefile	1970-01-01 00:00:00.000000000 +0000
@@ -10,7 +10,7 @@ endif
 
 TELEGRAF := telegraf$(shell go tool dist env | grep -q 'GOOS=.windows.' && echo .exe)
 
-LDFLAGS := $(LDFLAGS) -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)
+LDFLAGS := -X main.commit=$(COMMIT) -X main.branch=$(BRANCH)
 ifdef VERSION
 	LDFLAGS += -X main.version=$(VERSION)
 endif