Add PIE,BIND_NOW,RELRO,STRIP secure compilation options

(cherry picked from commit d42f16ecad94853c3247a9ed49c1b279bfffdbfb)
This commit is contained in:
wk333 2023-02-09 10:35:45 +08:00 committed by openeuler-sync-bot
parent dac2b276ce
commit 053511b9ec

View File

@ -1,10 +1,10 @@
%global goipath github.com/go-delve/delve
%global gobuild go build -mod=vendor
%global gobuild go build -mod=vendor -buildmode=pie -ldflags "-s -w -linkmode=external -extldflags '-Wl,-z,relro -Wl,-z,now'"
%global debug_package %{nil}
Name: delve
Version: 1.6.0
Release: 1
Release: 2
Summary: A debugger for the Go programming language
License: MIT
URL: https://github.com/go-delve/delve
@ -44,6 +44,9 @@ rm -rf %{buildroot}
%doc Documentation/*
%changelog
* Thu Feb 09 2023 wangkai <wangkai385@h-partners.com> - 1.6.0-2
- Add PIE,BIND_NOW,RELRO,STRIP secure compilation options
* Fri Jan 29 2021 fcwicky <307610302@qq.com> - 1.6.0-1
- update package to v1.6.0