11 Star 0 Fork 11

src-openEuler / promu

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
add-parameters-to-solve-the-strip.patch 1.50 KB
Copy Edit Raw Blame History
jiangxinyu authored 2023-09-07 16:35 . Update package to version 0.15.0
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/promu.git
git@gitee.com:src-openeuler/promu.git
src-openeuler
promu
promu
master

Search

344bd9b3 5694891 D2dac590 5694891