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 64DA5A0C4E; Thu, 22 Jul 2021 10:16:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDC854014E; Thu, 22 Jul 2021 10:16:22 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id ABF434014D; Thu, 22 Jul 2021 10:16:21 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10052"; a="233405555" X-IronPort-AV: E=Sophos;i="5.84,260,1620716400"; d="scan'208";a="233405555" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2021 01:16:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,260,1620716400"; d="scan'208";a="470540867" Received: from andromeda02.png.intel.com ([10.221.183.11]) by fmsmga008.fm.intel.com with ESMTP; 22 Jul 2021 01:16:18 -0700 From: mohamad.noor.alim.hussin@intel.com To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com, Mohamad Noor Alim Hussin , tianfei.zhang@intel.com, stable@dpdk.org Date: Thu, 22 Jul 2021 16:16:03 +0800 Message-Id: <20210722081603.42711-1-mohamad.noor.alim.hussin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] ifpga/base/meson: fix looking for librt X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Mohamad Noor Alim Hussin 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: tianfei.zhang@intel.com Cc: stable@dpdk.org 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