From bf73b8eebf83a891561aeb714ec4f6a41751a5e3 Mon Sep 17 00:00:00 2001 From: jackie_wu Date: Fri, 19 Mar 2021 16:38:46 +0800 Subject: [PATCH] add fstack-protector-strong add (cherry picked from commit 7346ea3de09a6a5eab71e43c881fd1322668e0d1) --- dpdk.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dpdk.spec b/dpdk.spec index 6a8b766..476e37e 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -1,6 +1,6 @@ Name: dpdk Version: 19.11 -Release: 8 +Release: 11 Packager: packaging@6wind.com URL: http://dpdk.org %global source_version 19.11 @@ -132,6 +132,7 @@ This package contains the pdump tool for capture the dpdk network packets. %build namer=%{kern_devel_ver} export RTE_KERNELDIR=/lib/modules/${namer}/build +export EXTRA_CFLAGS="-fstack-protector-strong" make O=%{target} T=%{config} config #make .so libraries for spdk sed -ri 's,(CONFIG_RTE_BUILD_SHARED_LIB=).*,\1y,' %{target}/.config @@ -230,10 +231,10 @@ strip -g $RPM_BUILD_ROOT/lib/modules/${namer}/extra/dpdk/rte_kni.ko /usr/sbin/depmod %changelog -* Mon Apr 5 2021 wu-changsheng<851744572@qq.com> - 19.11-8 -- add support for gazelle +* Mon Mar 15 2021 wutao - 19.11-11 +- add fstack-protector-strong gcc flags -* Thu Jan 28 2021 huangliming - 19.11-7 +* Thu Jan 28 2021 huangliming - 19.11-10 - fix populate with small virtual chunks * Thu Jan 28 2021 huangliming - 19.11-6 -- Gitee