> -----Original Message-----
> From: dev <dev-boun...@dpdk.org> On Behalf Of Hemant Agrawal
> Sent: Monday, December 21, 2020 3:29 PM
> To: Bruce Richardson <bruce.richard...@intel.com>
> Cc: dev@dpdk.org
> Subject: Re: [dpdk-dev] meson: wrong dependency in cross compilation on ARM
>
>
> > -----Original Message-----
> > From: dev <dev-boun...@dpdk.org> On Behalf Of Bruce Richardson
> >
> > 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.
>
> [Hemant] I will try.
>
Hi Hemant, have you tried this yet?
I have an extra question. Since this is aarch64 cross-compilation, you should
be using aarch64-linux-gnu-pkg-config - is that so?
The aarch64 pkg-config should prevent searching in build machine paths. Would
this also point to cmake finding these dependencies?
> Also, is there a way to disable certain drivers (e.g. bnx2x) and libraries
> (e.g.
> compress) in meson config file statically, so that they don't get build.
> Using disable_driver options is still not working as the dpdk-test has
> dependency
> on zlib.
>
> >
> > /Bruce