!10 [sync] PR-9: add PIE compiler options
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
311f3fc62a
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user