From 92312a119812a1429840e11c21229781075f840e Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 5 Jun 2022 17:59:10 +0200 Subject: [PATCH] package/linux-tools: perf needs dynamic library traceevent needs dynamic library since its addition in kernel 3.14 and https://github.com/torvalds/linux/commit/c877bbd8eceb14c5eac6779cc804fa8b34044736: event-plugin.c:10:10: fatal error: dlfcn.h: No such file or directory 10 | #include | ^~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/24206071721479a6ba4d0267e7e20ef9498e1e05 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN (cherry picked from commit b1dd0548d3f351c88e447d08f87e93f3151947c7) Signed-off-by: Peter Korsgaard --- package/linux-tools/Config.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in index 6c1c1d7abe..732ac65a25 100644 --- a/package/linux-tools/Config.in +++ b/package/linux-tools/Config.in @@ -50,6 +50,7 @@ config BR2_PACKAGE_LINUX_TOOLS_PCI config BR2_PACKAGE_LINUX_TOOLS_PERF bool "perf" depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on !BR2_STATIC_LIBS # dlfcn.h select BR2_PACKAGE_LINUX_TOOLS help perf (sometimes "Perf Events" or perf tools, originally @@ -69,6 +70,10 @@ config BR2_PACKAGE_LINUX_TOOLS_PERF https://perf.wiki.kernel.org/ +comment "perf needs a toolchain w/ dynamic library" + depends on BR2_TOOLCHAIN_HAS_SYNC_4 + depends on BR2_STATIC_LIBS + if BR2_PACKAGE_LINUX_TOOLS_PERF config BR2_PACKAGE_LINUX_TOOLS_PERF_TUI