forked from openwrt/openwrt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iproute2: simplify linking libelf for eBFP/XDP object file support
Simplify build and runtime dependencies on libelf, which allows tc and ip to load BPF and XDP object files respectively. 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>
- Loading branch information
1 parent
e6d84fa
commit 26681fa
Showing
3 changed files
with
21 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
package/network/utils/iproute2/patches/145-keep_libelf_optional.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
60 changes: 0 additions & 60 deletions
60
package/network/utils/iproute2/patches/190-link-libelf-to-tc-only.patch
This file was deleted.
Oops, something went wrong.