Skip to content

Commit ce38574

Browse files
committed
ci/diffs: Add a patch fixing bpftool static build
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1 parent e8c5ba2 commit ce38574

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 2a4dffd83945d770fbfbef022f25c3c9ce71b6a5 Mon Sep 17 00:00:00 2001
2+
From: Ihor Solodrai <ihor.solodrai@linux.dev>
3+
Date: Tue, 27 Jan 2026 12:27:30 -0800
4+
Subject: [PATCH] Fix static build of bpftool
5+
6+
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
7+
---
8+
tools/bpf/bpftool/Makefile | 4 ++--
9+
1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+
diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
12+
index 5442073a2e42..519ea5cb8ab1 100644
13+
--- a/tools/bpf/bpftool/Makefile
14+
+++ b/tools/bpf/bpftool/Makefile
15+
@@ -130,8 +130,8 @@ include $(FEATURES_DUMP)
16+
endif
17+
endif
18+
19+
-LIBS = $(LIBBPF) -lelf -lz -lcrypto
20+
-LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lz -lcrypto
21+
+LIBS = $(LIBBPF) -lelf -lcrypto -lz
22+
+LIBS_BOOTSTRAP = $(LIBBPF_BOOTSTRAP) -lelf -lcrypto -lz
23+
24+
ifeq ($(feature-libelf-zstd),1)
25+
LIBS += -lzstd
26+
--
27+
2.52.0
28+

0 commit comments

Comments
 (0)