add PIE compiler options

(cherry picked from commit e611dacc84350163c58e297189d0a11542999219)
This commit is contained in:
chen-jan 2023-06-05 15:34:58 +08:00 committed by openeuler-sync-bot
parent 98b61e59fa
commit 14bb928a89

View File

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