]> git.ipfire.org Git - thirdparty/iproute2.git/commit
bpf: unbreak libelf linkage for bpf obj loader
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 Aug 2017 22:15:41 +0000 (00:15 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 10 Aug 2017 23:40:02 +0000 (16:40 -0700)
commit8cc360fe483d028ec39ec2b74ba18a7b95f4520e
tree4f72e7770ad67bf452eaf7fa72df692eca972b42
parentfb6cb30774a1b61db4ab1e6b972f1086f115cf5e
bpf: unbreak libelf linkage for bpf obj loader

Commit 69fed534a533 ("change how Config is used in Makefile's") moved
HAVE_MNL specific CFLAGS/LDLIBS for building with libmnl out of the
top level Makefile into sub-Makefiles. However, it also removed the
HAVE_ELF specific CFLAGS/LDLIBS entirely, which breaks the BPF object
loader for tc and ip with "No ELF library support compiled in." despite
having libelf detected in configure script. Fix it similarly as in
69fed534a533 for HAVE_ELF.

Fixes: 69fed534a533 ("change how Config is used in Makefile's")
Reported-by: Jeffrey Panneman <jeffrey.panneman@tno.nl>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
ip/Makefile
lib/Makefile
tc/Makefile