!15 [sync] PR-13: set flags for BIND_NOW
From: @openeuler-sync-bot Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
554278772d
@ -8,7 +8,7 @@
|
||||
|
||||
Name: pushgateway
|
||||
Version: 1.4.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Prometheus pushgateway.
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/prometheus/%{name}
|
||||
@ -37,7 +37,7 @@ The Pushgateway then exposes these metrics to Prometheus.
|
||||
%build
|
||||
mkdir -p $(pwd)/bin
|
||||
export GOBIN=$(pwd)/bin
|
||||
go build -mod=vendor -buildmode=pie -ldflags "-s -w" -o bin ./ ...
|
||||
go build -mod=vendor -buildmode=pie -ldflags "-s -w -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now' " -o bin ./ ...
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
@ -70,6 +70,9 @@ exit 0
|
||||
%dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus
|
||||
|
||||
%changelog
|
||||
* Thu Feb 09 2023 xu_ping <xuping33@h-partners.com> - 1.4.1-5
|
||||
- set flags for BIND_NOW
|
||||
|
||||
* Thu Feb 09 2023 xu_ping <xuping33@h-partners.com> - 1.4.1-4
|
||||
- set flags for build
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user