35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
From b754346641b7875dc920c26dcf96a7541e5365ba Mon Sep 17 00:00:00 2001
|
|
From: jxy_git <jiangxinyu@kylinos.cn>
|
|
Date: Thu, 7 Sep 2023 16:02:54 +0800
|
|
Subject: [PATCH] add parameters to solve the strip
|
|
|
|
---
|
|
.promu.yml | 11 +++++------
|
|
1 file changed, 5 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/.promu.yml b/.promu.yml
|
|
index 45081b8..d586c86 100644
|
|
--- a/.promu.yml
|
|
+++ b/.promu.yml
|
|
@@ -10,12 +10,11 @@ build:
|
|
windows: [static_build]
|
|
flags: -a
|
|
ldflags: |
|
|
- -s
|
|
- -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:
|
|
- LICENSE
|
|
--
|
|
2.41.0
|
|
|