diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2024-04-24 09:17:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-24 09:17:23 +0300 |
commit | aa6d30384d26c6df33acd67dc8402ae9e3195297 (patch) | |
tree | 26cd1570fd2f6ed573970bf6d7bba9494a3ad92d /netdata.spec.in | |
parent | 7a597929028192e37751c98ce18aea1c32a899b7 (diff) |
Move libbpf and eBPF CO-RE bundling into CMake. (#17484)
* Move libbpf and eBPF CO-RE bundling into CMake.
* Silence CMP0135 warnings.
* Fix handling of legacy eBPF code.
* Only enable eBPF by default on Linux.
* Correctly auto-detect the need for legacy libbpf.
* Fix include paths for libbpf linking.
* Add coreutils dependency on Alpine.
* Fix ebpf code handling.
* Fix lib path handling for libbpf.a.
* Correctly fix libbpf lib directory handling.
* Use correct comparison type.
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index ecaf573d05..76701524e2 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -315,20 +315,6 @@ happened, on your systems and applications. %prep %setup -q -n "%{name}-%{version}" -%if 0%{?_have_ebpf} -%if 0%{?centos_ver:1} -%if %{centos_ver} < 8 -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos7 -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} -%else -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos8 -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} -%endif -%else -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} other -export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} -%endif -%endif %build # Conf step |