raw/ifpga/base: fix linking with librt
authorMohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com>
Tue, 28 Sep 2021 04:36:10 +0000 (12:36 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Oct 2021 14:05:15 +0000 (16:05 +0200)
commit829c5946b55f569e56df399b94ab51c473f6696e
treebc571c256acd22959e1d94de1cd1e1e9f8ad8ca3
parent2700326085033fd13339a8de31f58a95d1ee9c3f
raw/ifpga/base: fix linking with librt

Finding with "librt" keyword would give the output with
full path of librt such as
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/librt.so
instead of -lrt in libdpdk.pc pkg-config file.

Assume find_library() will prepend "lib", thus remove
"lib" from "librt" keyword. The output will shows
as -lrt.

This will cause an issue when compile DPDK app with
static library as the path of librt has been hard-coded
in the libdpdk.pc file.

Fixes: e41856b515ce ("raw/ifpga/base: enhance driver reliability in multi-process")
Cc: stable@dpdk.org
Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin@intel.com>
Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ifpga/base/meson.build