summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2024-05-06 07:05:34 -0400
committerGitHub <noreply@github.com>2024-05-06 07:05:34 -0400
commit90552bd5012f98e56e874afce6bf8fdc0cae52b5 (patch)
tree90e28d750c38380832ed0acf70133b197153df05 /netdata.spec.in
parent1456cac4af77e6db2c063d6f842c049968098a88 (diff)
Fix handling of vendored eBPF code in CMake. (#17556)
* Fix logic error in CMake code for kernel version detection. * Force legacy libbpf for CentOS 7 and AL 2 package builds. * Check target kernel version instead of host kernel version. This should help when building in containers. * Fix up handling for older versions of CMake. * Use CMake C compiler for libbpf builds. * Fix selection of legacy eBPF code in static builds. * Explicitly pull in kernel headers on CentOS. * Fix typo in FORCE_LEGACY_LIBBPF option. * Only enable eBPF by default on x86. * Fix detection of static builds. * Fix libc detection logic. * Fix handling of static builds. * Fix musl libc detection. * Fix check messages for libc detection.
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index 4bfe2b1ae8..53e12b458b 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -332,6 +332,11 @@ happened, on your systems and applications.
%endif
%if %{_have_ebpf}
-DENABLE_PLUGIN_EBPF=On \
+ %if 0%{?centos_ver:1}
+ %if 0%{?centos_ver} < 8
+ -DFORCE_LEGACY_LIBBPF=On \
+ %endif
+ %endif
%else
-DENABLE_PLUGIN_EBPF=Off \
%endif