numam-dpdk/drivers/net/ipn3ke
Christian Ehrhardt e356aa46ad avoid libfdt checks adding full paths to pkg-config
The checks for libfdt try dependency() first which would only work if
a pkg-config would be present but libfdt has none.
Then it probes for the lib path itself via cc.find_library.

But later it adds the result of either probe to ext_deps which ends up
in build and also the resulting pkg-config to contain toolchain versioned
paths in Libs.private like:
  /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libfdt.so
which obviously breaks on toolchain updates.

In general libs used multiple times - ipn3ke + ifpga in this case - are
checked centrally in config/meson.build so move it there and fix the
adding of dependencies to not use the full file path.

The result is libfdt in pkg-config now showing up as:
  Libs.private: -pthread -lm -ldl -lnuma -lfdt -lpcap

Fixes: e1defba4cf ("raw/ifpga/base: support device tree")
Cc: stable@dpdk.org

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
2020-09-15 15:19:34 +02:00
..
ipn3ke_ethdev.c log: introduce logtype register macro 2020-07-03 15:52:51 +02:00
ipn3ke_ethdev.h net/ipn3ke: remove commented out code 2019-11-08 16:40:28 +01:00
ipn3ke_flow.c net/ipn3ke: remove configuration for i40e port bonding 2019-11-20 17:36:05 +01:00
ipn3ke_flow.h net/ipn3ke: support flow API 2019-04-19 14:51:54 +02:00
ipn3ke_logs.h net/ipn3ke: add new driver 2019-04-19 14:51:54 +02:00
ipn3ke_rawdev_api.h net/ipn3ke: remove configuration for i40e port bonding 2019-11-20 17:36:05 +01:00
ipn3ke_representor.c net/ipn3ke: use control thread to check link status 2020-04-21 13:57:04 +02:00
ipn3ke_tm.c net/ipn3ke: remove commented out code 2019-11-08 16:40:28 +01:00
meson.build avoid libfdt checks adding full paths to pkg-config 2020-09-15 15:19:34 +02:00
rte_pmd_ipn3ke_version.map version: 20.11-rc0 2020-08-12 11:32:16 +02:00