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 2289DA0C4C for ; Tue, 28 Sep 2021 06:36:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D189410E6; Tue, 28 Sep 2021 06:36:27 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id DDEA140DF6; Tue, 28 Sep 2021 06:36:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="247121132" X-IronPort-AV: E=Sophos;i="5.85,328,1624345200"; d="scan'208";a="247121132" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2021 21:36:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,328,1624345200"; d="scan'208";a="437049880" Received: from andromeda02.png.intel.com ([10.221.183.11]) by orsmga006.jf.intel.com with ESMTP; 27 Sep 2021 21:36:12 -0700 From: mohamad.noor.alim.hussin@intel.com To: mohamad.noor.alim.hussin@intel.com Cc: bruce.richardson@intel.com, david.marchand@redhat.com, dev@dpdk.org, stable@dpdk.org, tianfei.zhang@intel.com Date: Tue, 28 Sep 2021 12:36:10 +0800 Message-Id: <20210928043610.52833-1-mohamad.noor.alim.hussin@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722081603.42711-1-mohamad.noor.alim.hussin@intel.com> References: <20210722081603.42711-1-mohamad.noor.alim.hussin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v3] ifpga/base/meson: fix looking for librt 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/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 Acked-by: Tianfei Zhang Acked-by: Bruce Richardson 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 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 -- 2.32.0