aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
diff options
context:
space:
mode:
authorTony Ambardar <itugrok@yahoo.com>2018-12-15 18:26:48 -0800
committerHans Dedecker <dedeckeh@gmail.com>2019-03-14 22:54:50 +0100
commitf61359e16ef911a8fc01e7028942d9cad0bd8a96 (patch)
tree5b057ce88b83adeaf85823598f99877798d2bc5b /package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
parent127d38f219962e070483cfeeb9df4811a9df076e (diff)
downloadupstream-f61359e16ef911a8fc01e7028942d9cad0bd8a96.tar.gz
upstream-f61359e16ef911a8fc01e7028942d9cad0bd8a96.tar.bz2
upstream-f61359e16ef911a8fc01e7028942d9cad0bd8a96.zip
iproute2: support eBFP/XDP object file loading, simplify linking libelf
Add build and runtime dependencies on libelf, allowing tc and ip-full to load BPF and XDP object files respectively. Define package 'tc' as a singleton package variant, which can be used to enable additional functionality limited only to tc. Also set ip-tiny as the default 'ip' variant. Preserve optionality of libelf by having configuration script follow the HAVE_ELF environment variable, used similarly to the HAVE_MNL variable. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Diffstat (limited to 'package/network/utils/iproute2/patches/145-keep_libelf_optional.patch')
-rw-r--r--package/network/utils/iproute2/patches/145-keep_libelf_optional.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch b/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
new file mode 100644
index 0000000000..2e3ad18809
--- /dev/null
+++ b/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -228,7 +228,7 @@ EOF
+
+ check_elf()
+ {
+- if ${PKG_CONFIG} libelf --exists; then
++ if [ "${HAVE_ELF}" = "y" ] && ${PKG_CONFIG} libelf --exists; then
+ echo "HAVE_ELF:=y" >>$CONFIG
+ echo "yes"
+