From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DC179A0C41 for ; Thu, 24 Jun 2021 08:27:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E53914003C; Thu, 24 Jun 2021 08:27:53 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 960EC4003C for ; Thu, 24 Jun 2021 08:27:52 +0200 (CEST) IronPort-SDR: 2x6ztVhwrXzhXDPs+w0PbJEJ62zy8p10Ycd5qAla+ELCiBhkfnI9KNpjegrNnnBp+jaSRa26uc PmIHDg22AtsQ== X-IronPort-AV: E=McAfee;i="6200,9189,10024"; a="194706466" X-IronPort-AV: E=Sophos;i="5.83,295,1616482800"; d="scan'208";a="194706466" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2021 23:27:51 -0700 IronPort-SDR: J/7oL50Wf44mScZ9xWIva4Rz6PfDHh7jJQmEH3R4dBZMyGtCGIdDYhWOhKQgwqvpxx4L5xprh8 o2bbpXsoh6Ew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,295,1616482800"; d="scan'208";a="491002421" Received: from andromeda02.png.intel.com ([10.221.183.11]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2021 23:27:50 -0700 From: mohamad.noor.alim.hussin@intel.com To: stable@dpdk.org Cc: Mohamad Noor Alim Hussin Date: Thu, 24 Jun 2021 14:27:47 +0800 Message-Id: <20210624062747.61379-1-mohamad.noor.alim.hussin@intel.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 20.11] ifpga/meson: Fix finding librt using find_library() X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Mohamad Noor Alim Hussin 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 --- 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