patches for DPDK stable branches
 help / color / mirror / Atom feed
Cc: Mohamad Noor Alim Hussin <>
Subject: [dpdk-stable] [PATCH 20.11] ifpga/meson: Fix finding librt using find_library()
Date: Thu, 24 Jun 2021 14:27:47 +0800
Message-ID: <> (raw)

From: Mohamad Noor Alim Hussin <>

Finding with "librt" keyword would give the output
with full path of librt such as /usr/lib/
instead of -lrt.

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

Signed-off-by: Mohamad Noor Alim Hussin <>
 drivers/raw/ifpga/base/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/raw/ifpga/base/ b/drivers/raw/ifpga/base/
index da2d6e33c..949f7f127 100644
--- a/drivers/raw/ifpga/base/
+++ b/drivers/raw/ifpga/base/
@@ -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)
 if not rtdep.found()
 	build = false

             reply	other threads:[~2021-06-24  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24  6:27 mohamad.noor.alim.hussin [this message]
2021-06-25 12:34 ` Xueming(Steven) Li
2021-06-28  7:42   ` Hussin, Mohamad Noor Alim
2021-06-28  7:52     ` Xueming(Steven) Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone