aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegraf/telegraf-makefile-ldflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/telegraf/telegraf-makefile-ldflags.patch')
-rw-r--r--testing/telegraf/telegraf-makefile-ldflags.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/telegraf/telegraf-makefile-ldflags.patch b/testing/telegraf/telegraf-makefile-ldflags.patch
new file mode 100644
index 0000000000..202276940b
--- /dev/null
+++ b/testing/telegraf/telegraf-makefile-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@
+ PATH := $(subst :,/bin:,$(GOPATH))/bin:$(PATH)
+ endif
+
+-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