blackbox_exporter/add-parameters-to-solve-the-strip.patch
wu-leilei 1104bac255 Delete strip and pie
(cherry picked from commit 69ac21051ed384b5341a540b13f6d4d42510d8a2)
2023-03-21 09:35:46 +08:00

21 lines
1.2 KiB
Diff

diff -Nur a/.promu.yml b/.promu.yml
--- a/.promu.yml 2023-02-09 14:54:47.876832158 +0800
+++ b/.promu.yml 2023-02-09 14:56:28.322288215 +0800
@@ -7,11 +7,11 @@
build:
flags: -a -tags netgo
ldflags: |
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Revision}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
- -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
+ -w -s -extldflags '-Wl,-z,relro -Wl,-z,now -pie' -X github.com/prometheus/common/version.Version={{.Version}}
+ -w -s -extldflags '-Wl,-z,relro -Wl,-z,now -pie' -X github.com/prometheus/common/version.Revision={{.Revision}}
+ -w -s -extldflags '-Wl,-z,relro -Wl,-z,now -pie' -X github.com/prometheus/common/version.Branch={{.Branch}}
+ -w -s -extldflags '-Wl,-z,relro -Wl,-z,now -pie' -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
+ -w -s -extldflags '-Wl,-z,relro -Wl,-z,now -pie' -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:
- blackbox.yml