[PATCH] tools build: Link crypto lib for libopenssl feature

From: Leo Yan

Date: Sat Mar 07 2026 - 09:06:20 EST


The perf static build reports that the BPF skeleton is disabled due to
the missing libopenssl feature.

Linking the crypto library fixes the static build failure.

Fixes: 7678523109d1 ("tools/build: Add a feature test for libopenssl")
Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
---
tools/build/feature/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile
index 1fbcb3ce74d2..8b1e32cb22fd 100644
--- a/tools/build/feature/Makefile
+++ b/tools/build/feature/Makefile
@@ -384,7 +384,7 @@ $(OUTPUT)test-libpfm4.bin:
$(BUILD) -lpfm

$(OUTPUT)test-libopenssl.bin:
- $(BUILD) -lssl
+ $(BUILD) -lssl -lcrypto

$(OUTPUT)test-bpftool-skeletons.bin:
$(SYSTEM_BPFTOOL) version | grep '^features:.*skeletons' \
--
2.34.1