add fstack-protector-strong gcc flags

(cherry picked from commit 154e549925543511c844f2fa480fecac06193a43)
This commit is contained in:
jackie_wu 2021-05-24 09:34:51 +08:00 committed by openeuler-sync-bot
parent fcbf48eab5
commit 3d904520b7

View File

@ -1,6 +1,6 @@
Name: dpdk
Version: 19.11
Release: 8
Release: 9
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,6 +231,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/${namer}/extra/dpdk/rte_kni.ko
/usr/sbin/depmod
%changelog
* Mon May 24 2021 wutao <wutao61@huawei.com> - 19.11-9
- add fstack-protector-strong gcc flags
* Mon Apr 5 2021 wu-changsheng<851744572@qq.com> - 19.11-8
- add support for gazelle