bpftools: fix libbpf pkgconfig file
authorTony Ambardar <itugrok@yahoo.com>
Mon, 1 Mar 2021 09:07:45 +0000 (01:07 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 29 Mar 2021 20:26:27 +0000 (22:26 +0200)
commit6b2bcd2597688484007349243ac4cd835b2a5cd2
tree8ffa28efdee6e83366b251aa25c1c50963d016d1
parentf0ab4b17e66cef75ab6d407c65b9224a3629d0d7
bpftools: fix libbpf pkgconfig file

The pkgconfig file hardcodes a host library directory which cannot be
overridden by OpenWrt during builds. Use SED to fix this and potential
include directory problems, as is done with several other packages.

This fixes a strange issue intermittently seen building iproute2 on the
oxnas target:

iptables modules directory: /usr/lib/iptables
libc has setns: yes
SELinux support: no
libbpf support: no
libbpf version 0.3.0 is too low, please update it to at least 0.1.0
LIBBPF_FORCE=on set, but couldn't find a usable libbpf

Fixes: 2f0d672088c3 ("bpftools: add utility and library packages
supporting eBPF usage")
Reported-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from commit 9e64e4ce26719ea81637b0e3d9754bd5190f0c21)
package/network/utils/bpftools/Makefile