From 5a0bc5babbd2caef59e0ae7eb879997ecbe872b2 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 17 May 2023 13:24:57 -0400 Subject: [PATCH] Disable libdwarf in RHEL builds libdwarf is unwanted in RHEL 9+. --- bpftrace.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bpftrace.spec b/bpftrace.spec index 26591d0..712a31c 100644 --- a/bpftrace.spec +++ b/bpftrace.spec @@ -25,7 +25,9 @@ BuildRequires: libbpf-devel BuildRequires: libbpf-static BuildRequires: binutils-devel BuildRequires: cereal-devel +%if ! 0%{?rhel} BuildRequires: libdwarf-devel +%endif BuildRequires: rubygem-asciidoctor