!10 [sync] PR-9: add PIE compiler options

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-06-06 11:28:24 +00:00 committed by Gitee
commit 311f3fc62a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: nethogs
Version: 0.8.6
Release: 2
Release: 3
Summary: Nethogs is a small 'net top' tool
License: GPLv2+
URL: https://github.com/raboof/nethogs/
@ -19,6 +19,7 @@ ddenly taking up your bandwidth.
%build
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${CXXFLAGS} -fPIE -pie"
%make_build
%install
@ -34,6 +35,9 @@ export CFLAGS="${RPM_OPT_FLAGS}"
%{_mandir}/../../local/share/man/man8/nethogs.8*
%changelog
* Mon Jun 05 2023 chenchen <chen_aka_jan@163.com> - 0.8.6-3
- add PIE compiler options
* Tue Aug 23 2022 wulei <wulei80@h-partners.com> 0.8.6-2
- Fix binary /usr/local/sbin/nethogs not striped problem