diff --git a/Makefile b/Makefile index e72dd1428..5ac4cbacd 100644 --- a/Makefile +++ b/Makefile @@ -208,6 +208,7 @@ else # To clean all files, enable make/build options here export CONFIG_COMPAT := y export CONFIG_GNUTLS := y +export CONFIG_HAS_LIBBPF := y endif # diff --git a/Makefile.config b/Makefile.config index 98ba5d892..3d99e680b 100644 --- a/Makefile.config +++ b/Makefile.config @@ -15,6 +15,12 @@ ifeq ($(call pkg-config-check,libselinux),y) FEATURE_DEFINES += -DCONFIG_HAS_SELINUX endif +ifeq ($(call pkg-config-check,libbpf),y) + LIBS_FEATURES += -lbpf + FEATURE_DEFINES += -DCONFIG_HAS_LIBBPF + export CONFIG_HAS_LIBBPF := y +endif + ifeq ($(NO_GNUTLS)x$(call pkg-config-check,gnutls),xy) LIBS_FEATURES += -lgnutls export CONFIG_GNUTLS := y