From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CE1EDA09EF; Mon, 21 Dec 2020 15:06:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B7CF2CACE; Mon, 21 Dec 2020 15:06:12 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 34581CAC7 for ; Mon, 21 Dec 2020 15:06:10 +0100 (CET) IronPort-SDR: 0h70wirvZTGIwOCoeKEdBxU5JzQ2EQ6yW7dG+Ak4Fj54YcmnYtNez/6nUfaRxwoxEfaKUQ0ZwW b4ZDI6YNOpZA== X-IronPort-AV: E=McAfee;i="6000,8403,9841"; a="163451677" X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="163451677" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2020 06:04:07 -0800 IronPort-SDR: YxK7RvVtFU7fsn80GeOj2mmqhemR36tb52MgieQwqXbH3J3OKw1sEYzU1CptpaXlS5HyggxCna mbFYbSP0+kwQ== X-IronPort-AV: E=Sophos;i="5.78,436,1599548400"; d="scan'208";a="372539447" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.15.169]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 21 Dec 2020 06:04:05 -0800 Date: Mon, 21 Dec 2020 14:04:02 +0000 From: Bruce Richardson To: Hemant Agrawal Cc: "dev@dpdk.org" Message-ID: <20201221140402.GB1753@bricha3-MOBL.ger.corp.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" On Mon, Dec 21, 2020 at 12:19:17PM +0000, Hemant Agrawal wrote: > Hi, > I am trying to cross compile DPDK for arm64 on a ubuntu machine, which has a zlib pre-installed for native env. > > I am encountering following build error in net_bnx2x as it has dependency on zlib. It is trying to link with x86 arch based zlib. > > Cross compiling zlib and setting the PKG_CONFIG_PATH solve the issue. But, Is their an easy way to disable these dependencies? > Can you try with setting PKG_CONFIG_LIBDIR rather than PKG_CONFIG_PATH? PKG_CONFIG_PATH simply extends the search locations, which means that host-paths will still be searched, while PKG_CONFIG_LIBDIR replaces the default path, eliminating the host-based search paths. /Bruce