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>
11 lines
235 B
Diff
11 lines
235 B
Diff
--- 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"
|
|
|