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 Name: dpdk
Version: 21.11 Version: 21.11
Release: 43 Release: 44
Packager: packaging@6wind.com Packager: packaging@6wind.com
URL: http://dpdk.org URL: http://dpdk.org
%global source_version 21.11 %global source_version 21.11
@ -359,7 +359,7 @@ This package contains the pdump tool for capture the dpdk network packets.
%build %build
export CFLAGS="%{optflags}" 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 ninja -C build -v
#build gazelle-pdump/gazell-proc-info #build gazelle-pdump/gazell-proc-info
@ -406,8 +406,6 @@ cd -
cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib cd $RPM_BUILD_ROOT/usr/lib64/dpdk/pmds-22.0/lib
ln -fs ../../../*.so . ln -fs ../../../*.so .
cd - 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/rte_kni.ko
strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.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 /lib/modules/%{kern_devel_ver}/extra/dpdk/*.ko
/usr/lib64/*.so* /usr/lib64/*.so*
/usr/lib64/dpdk/* /usr/lib64/dpdk/*
/usr/local/lib64/dpdk/*
%exclude /usr/lib64/dpdk/pmds-22.0/include/*.h %exclude /usr/lib64/dpdk/pmds-22.0/include/*.h
%files devel %files devel
@ -457,6 +454,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
/usr/sbin/depmod /usr/sbin/depmod
%changelog %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 * Wed May 24 2023 chenjiji <chenjiji09@163.com> - 21.11-43
Sync some patchs from upstreaming for hns3 pmd and modifies Sync some patchs from upstreaming for hns3 pmd and modifies
are as follow: are as follow: