From 740755dc0ad5f340b54fc97d478180e21d6b50b2 Mon Sep 17 00:00:00 2001 From: chen-jan Date: Mon, 5 Jun 2023 15:34:58 +0800 Subject: [PATCH] add PIE compiler options (cherry picked from commit e611dacc84350163c58e297189d0a11542999219) --- nethogs.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nethogs.spec b/nethogs.spec index 8e042f3..fd99bc3 100644 --- a/nethogs.spec +++ b/nethogs.spec @@ -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 - 0.8.6-3 +- add PIE compiler options + * Tue Aug 23 2022 wulei 0.8.6-2 - Fix binary /usr/local/sbin/nethogs not striped problem -- Gitee