167d9c6797
As explained in drivers/meson.build, " For the find_library() case (but not with dependency()) we also need to specify the "-l" flags in pkgconfig_extra_libs variable too, so that it can be reflected in the pkgconfig output for static builds. " The commite30b4e566f
("build: improve dependency handling") must be followed up with this one in order to remove more occurences of pkgconfig_extra_libs redundant with use of dependency(). Fixes:f1debd77ef
("net/af_xdp: introduce AF_XDP PMD") Fixes:3c32e89f68
("compress/isal: add skeleton ISA-L compression PMD") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Luca Boccassi <bluca@debian.org>
17 lines
419 B
Meson
17 lines
419 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2019 Intel Corporation
|
|
|
|
sources = files('rte_eth_af_xdp.c')
|
|
|
|
bpf_dep = dependency('libbpf', required: false)
|
|
if not bpf_dep.found()
|
|
bpf_dep = cc.find_library('bpf', required: false)
|
|
endif
|
|
|
|
if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xdp.h')
|
|
ext_deps += bpf_dep
|
|
else
|
|
build = false
|
|
reason = 'missing dependency, "libbpf"'
|
|
endif
|