build: force pkg-config for dependency detection
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 18 Jan 2021 14:29:57 +0000 (14:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Jan 2021 23:43:59 +0000 (00:43 +0100)
commit7be7dc6dea927da7d458cb4172d70338f9eea164
treef0b5d1abed6a7fff8af7266477aed9dfd0de98a2
parent3feefc80ac3a24e0aba9d3730dd1fa4ea1bf121a
build: force pkg-config for dependency detection

Meson can use cmake as a fallback for detecting packages, and this can
lead to picking up 64-libs for 32-bit builds. To work around this, force
the use of pkg-config only for detecting libcrypto, zlib, jansson and
other package dependencies.

Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: Liron Himi <lironh@marvell.com>
Tested-by: Lee Daly <lee.daly@intel.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Martin Spinler <spinler@cesnet.cz>
22 files changed:
app/test/meson.build
config/meson.build
drivers/common/mlx5/linux/meson.build
drivers/common/mvep/meson.build
drivers/common/qat/meson.build
drivers/compress/isal/meson.build
drivers/compress/zlib/meson.build
drivers/crypto/armv8/meson.build
drivers/crypto/ccp/meson.build
drivers/crypto/mvsam/meson.build
drivers/crypto/openssl/meson.build
drivers/crypto/qat/meson.build
drivers/net/af_xdp/meson.build
drivers/net/bnx2x/meson.build
drivers/net/mlx4/meson.build
drivers/net/mvneta/meson.build
drivers/net/mvpp2/meson.build
drivers/net/nfb/meson.build
drivers/net/szedata2/meson.build
examples/vm_power_manager/meson.build
lib/librte_bpf/meson.build
lib/librte_metrics/meson.build