[dpdk-stable] [PATCH 20.11] ifpga/meson: Fix finding librt using find_library()

Xueming(Steven) Li xuemingl at nvidia.com
Fri Jun 25 14:34:17 CEST 2021


Hi Mohamad,

Is the patch merged into dpdk main branch? Need a line [ upstream commit <ID> ] in commit message.

BTW, have you run devtools/checkpatches.sh? Seems missing "Fixes: " line.

Best Regards,
Xueming

> -----Original Message-----
> From: stable <stable-bounces at dpdk.org> On Behalf Of mohamad.noor.alim.hussin at intel.com
> Sent: Thursday, June 24, 2021 2:28 PM
> To: stable at dpdk.org
> Cc: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin at intel.com>
> Subject: [dpdk-stable] [PATCH 20.11] ifpga/meson: Fix finding librt using find_library()
> 
> From: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin at intel.com>
> 
> Finding with "librt" keyword would give the output with full path of librt such as /usr/lib/librt.so instead of -lrt.
> 
> Assume find_library() will prepend "lib", thus remove "lib" from "librt" keyword. The output will shows as -lrt.
> 
> Signed-off-by: Mohamad Noor Alim Hussin <mohamad.noor.alim.hussin at intel.com>
> ---
>  drivers/raw/ifpga/base/meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/raw/ifpga/base/meson.build b/drivers/raw/ifpga/base/meson.build
> index da2d6e33c..949f7f127 100644
> --- a/drivers/raw/ifpga/base/meson.build
> +++ b/drivers/raw/ifpga/base/meson.build
> @@ -25,7 +25,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
> --
> 2.32.0



More information about the stable mailing list