diff --git a/binutils-2.40.patch b/binutils-2.40.patch index dc0ce8e..9fffdda 100644 --- a/binutils-2.40.patch +++ b/binutils-2.40.patch @@ -1,5 +1,5 @@ diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile -index f610e184ce02..afef9c65614e 100644 +index f610e184ce02..21cd7505e871 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -154,6 +154,8 @@ else @@ -7,7 +7,7 @@ index f610e184ce02..afef9c65614e 100644 ifeq ($(feature-libbfd),1) LIBS += -lbfd -ldl -lopcodes + else ifeq ($(feature-libbfd-liberty-sframe),1) -+ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe ++ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe -lzstd else ifeq ($(feature-libbfd-liberty),1) LIBS += -lbfd -ldl -lopcodes -liberty else ifeq ($(feature-libbfd-liberty-z),1) diff --git a/bpftool.changes b/bpftool.changes index 45b4327..8db0060 100644 --- a/bpftool.changes +++ b/bpftool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 1 08:15:33 UTC 2023 - Martin Liška + +- Add -lzstd as libbfd is linked against the compression library. + ------------------------------------------------------------------- Wed Feb 22 08:21:22 UTC 2023 - Martin Liška diff --git a/bpftool.spec b/bpftool.spec index 3dde110..c79b274 100644 --- a/bpftool.spec +++ b/bpftool.spec @@ -29,6 +29,7 @@ BuildRequires: binutils-devel BuildRequires: docutils BuildRequires: kernel-source BuildRequires: libelf-devel +BuildRequires: libzstd-devel %description bpftool allows for inspection and simple modification of BPF objects (programs