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>
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"
|
|
|