examples use static libraries to avoid unlinked dynamic libraries

This commit is contained in:
jiangheng12 2023-05-27 16:25:26 +08:00
parent 6eadece282
commit 9b0839cefd

View File

@ -1,6 +1,6 @@
Name: dpdk
Version: 21.11
Release: 43
Release: 44
Packager: packaging@6wind.com
URL: http://dpdk.org
%global source_version 21.11
@ -359,7 +359,7 @@ This package contains the pdump tool for capture the dpdk network packets.
%build
export CFLAGS="%{optflags}"
meson build -Dplatform=generic -Dexamples=l3fwd-power,ethtool,l3fwd,kni,dma,ptpclient --default-library=shared
meson build -Dplatform=generic -Dexamples=l3fwd-power,ethtool,l3fwd,kni,dma,ptpclient
ninja -C build -v
#build gazelle-pdump/gazell-proc-info
@ -406,8 +406,6 @@ cd -
cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib
ln -fs ../../../*.so .
cd -
mkdir -p $RPM_BUILD_ROOT/usr/local/lib64/dpdk
ln -fs /usr/lib64/dpdk/pmds-22.0 $RPM_BUILD_ROOT/usr/local/lib64/dpdk/pmds-22.0
strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/rte_kni.ko
strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
@ -421,7 +419,6 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
/lib/modules/%{kern_devel_ver}/extra/dpdk/*.ko
/usr/lib64/*.so*
/usr/lib64/dpdk/*
/usr/local/lib64/dpdk/*
%exclude /usr/lib64/dpdk/pmds-22.0/include/*.h
%files devel
@ -457,6 +454,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
/usr/sbin/depmod
%changelog
* Sat May 27 2023 jiangheng <jiangheng14@huawei.com> - 21.11-44
- examples use static libraries to avoid unlinked dynamic libraries
* Wed May 24 2023 chenjiji <chenjiji09@163.com> - 21.11-43
Sync some patchs from upstreaming for hns3 pmd and modifies
are as follow: