1
0
golang-github-prometheus-pr.../prometheus-buildmode-pie.patch

14 lines
591 B
Diff

Index: prometheus-2.11.1/.promu.yml
===================================================================
--- prometheus-2.11.1.orig/.promu.yml 2019-07-31 12:44:46.190247145 +0200
+++ prometheus-2.11.1/.promu.yml 2019-07-31 12:45:18.354547518 +0200
@@ -10,7 +10,7 @@ build:
path: ./cmd/prometheus
- name: promtool
path: ./cmd/promtool
- flags: -mod=vendor -a
+ flags: -mod=vendor -buildmode=pie -a
ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}