[dpdk-dev] [PATCH v8 6/6] build: use dependency for pcap and fallback to find_library
Luca Boccassi
bluca at debian.org
Tue Feb 26 18:49:59 CET 2019
On Tue, 2019-02-26 at 17:46 +0000, luca.boccassi at gmail.com wrote:
> From: Luca Boccassi <luca.boccassi at microsoft.com>
>
> pcap has historically shipped a custom pcap-config binary tool which
> does the job of pkg-config. It was never compatible with cross
> compilation.
> Meson uses it when using dependency(), which then means cross
> compilation fails.
> Set pcap-config to empty in the meson cross compilation files so
> that Meson will not use it, and add a fallback in case
> dependency() fails.
> libpcap 1.9.0 finally ships a pkg-config file so everything will
> work out of the box in the future.
>
> Signed-off-by: Luca Boccassi <luca.boccassi at microsoft.com>
> ---
> v8: added back pcap change separately. Tested with bootlin
> cross-compilation toolchain, everything seems to work.
I had some time to invest so I added back this change, in a way that
works with cross compilation too. Given the series wasn't merged yet
and there was a conflict I've done a v8 rather than a single separate
patch, but it's independent from the rest.
More testing is of course welcome!
--
Kind regards,
Luca Boccassi
More information about the dev
mailing list