forked from pool/bpftool
Dirk Mueller
bcdb9be188
- Add binutils-2.40.patch where we need to explicitly link against -lsframe. It's a workaround for an existing issue: https://github.com/libbpf/bpftool/issues/73. OBS-URL: https://build.opensuse.org/request/show/1065908 OBS-URL: https://build.opensuse.org/package/show/Base:System/bpftool?expand=0&rev=10
14 lines
529 B
Diff
14 lines
529 B
Diff
diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
|
|
index 4a95c017ad4c..9a4851df3276 100644
|
|
--- a/tools/bpf/bpftool/Makefile
|
|
+++ b/tools/bpf/bpftool/Makefile
|
|
@@ -139,6 +139,8 @@ SRCS = $(filter-out $(BFD_SRCS),$(wildcard *.c))
|
|
|
|
ifeq ($(feature-libbfd),1)
|
|
LIBS += -lbfd -ldl -lopcodes
|
|
+else ifeq ($(feature-libbfd-liberty-sframe),1)
|
|
+ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe
|
|
else ifeq ($(feature-libbfd-liberty),1)
|
|
LIBS += -lbfd -ldl -lopcodes -liberty
|
|
else ifeq ($(feature-libbfd-liberty-z),1)
|