From: Mohamad Noor Alim Hussin Date: Tue, 28 Sep 2021 04:36:10 +0000 (+0800) Subject: raw/ifpga/base: fix linking with librt X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=829c5946b55f569e56df399b94ab51c473f6696e;p=dpdk.git 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 Acked-by: Tianfei Zhang Acked-by: Bruce Richardson --- diff --git a/drivers/raw/ifpga/base/meson.build b/drivers/raw/ifpga/base/meson.build index db602cee69..2de8e7ea22 100644 --- a/drivers/raw/ifpga/base/meson.build +++ b/drivers/raw/ifpga/base/meson.build @@ -27,7 +27,7 @@ sources = [ rtdep = dependency('librt', required: false) if not rtdep.found() - rtdep = cc.find_library('librt', required: false) + rtdep = cc.find_library('rt', required: false) endif if not rtdep.found() build = false