> -----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. 

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

Reply via email to