summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
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-installer.sh
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-installer.sh')
-rwxr-xr-xnetdata-installer.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index e95bff7fb8..9452c1e729 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -246,7 +246,9 @@ HEREDOC
}
if [ "$(uname -s)" = "Linux" ]; then
- ENABLE_EBPF=1
+ case "$(uname -m)" in
+ x86_64|i?86) ENABLE_EBPF=1 ;;
+ esac
fi
DONOTSTART=0