Hi All,
We want to use specific downloaded openssl while compiling the DPDKv21.11.
We don’t want to use the openssl installed in the build machine.

We tried adding -Dc_args and -Dc_link_args to meson configure to specify the 
director of external openssl but build still seems to be linking to installed 
verson of the open ssl.

DPDK Build Command:
meson setup build
meson configure -Dc_args="-I 
/thirdparty/gobuild/compcache/cayman_openssl/ob-20569149/linux64/lin64+gcc6/include"
 -Dc_link_args="-L 
thirdparty/gobuild/compcache/cayman_openssl/ob-20569149/linux64/lin64+gcc6/lib64/"
ninja -C build


ldd ./dpdk/build/drivers/librte_common_qat.so
        linux-vdso.so.1 (0x00007ffceffea000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe7d445b000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe7d4455000)
        libnuma.so.1 => /lib/x86_64-linux-gnu/libnuma.so.1 (0x00007fe7d4448000)
        librte_bus_pci.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/librte_bus_pci.so.22
 (0x00007fe7d4438000)
        librte_eal.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_eal.so.22
 (0x00007fe7d432d000)
       librte_kvargs.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_kvargs.so.22
 (0x00007fe7d4326000)
        librte_telemetry.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_telemetry.so.22
 (0x00007fe7d431b000)
        librte_pci.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_pci.so.22
 (0x00007fe7d4316000)
        librte_cryptodev.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_cryptodev.so.22
 (0x00007fe7d42fa000)
        librte_mbuf.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_mbuf.so.22
 (0x00007fe7d42ec000)
        librte_mempool.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_mempool.so.22
 (0x00007fe7d42dd000)
        librte_ring.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_ring.so.22
 (0x00007fe7d42d8000)
        librte_rcu.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_rcu.so.22
 (0x00007fe7d42d1000)
        librte_net.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_net.so.22
 (0x00007fe7d42c7000)
        librte_compressdev.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_compressdev.so.22
 (0x00007fe7d42bd000)
        librte_security.so.22 => 
/root/nsx-edge-datapath-dpdk-21-11/thirdparty/./dpdk/build/drivers/../lib/librte_security.so.22
 (0x00007fe7d42b4000)
        libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 
(0x00007fe7d3df4000) <<< This is the installed version of the openssl not the 
external version
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007fe7d3dd1000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe7d3bdf000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fe7d45f3000)

Please suggest how do we achieve this in meson/ninja?

Thanks,
Pankaj

Reply via email to