]> git.ipfire.org Git - thirdparty/iproute2.git/commit
configure: provide surrogates for possibly missing libbpf_version.h
authorStefan Mätje <stefan.maetje@esd.eu>
Sun, 11 Aug 2024 22:31:34 +0000 (00:31 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Aug 2024 15:24:37 +0000 (08:24 -0700)
commit0ddadc93e54f20e35cb742701413ede88ea00471
tree223a195f13f94487d2219a45e3e0276715257c98
parent72c13bc5d48c16e91fc438f75a1d93340b479503
configure: provide surrogates for possibly missing libbpf_version.h

Old libbpf library versions (< 0.7.x) may not have the libbpf_version.h
header packaged. This header would provide LIBBPF_MAJOR_VERSION and
LIBBPF_MINOR_VERSION which are then missing to control conditional
compilation in some source files.

Provide surrogates for these defines via CFLAGS that are derived from
the LIBBPF_VERSION determined with $(${PKG_CONFIG} libbpf --modversion).

Signed-off-by: Stefan Mätje <stefan.maetje@esd.eu>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
configure