[openwrt/openwrt] perf: Depend on libbfd and libopcodes when enabled

LEDE Commits lede-commits at lists.infradead.org
Thu Jan 27 20:17:36 PST 2022


florian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/17135ae0917b54f8ba30a834b2cf8bbcfc0778e6

commit 17135ae0917b54f8ba30a834b2cf8bbcfc0778e6
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Sat Jan 8 08:45:29 2022 -0800

    perf: Depend on libbfd and libopcodes when enabled
    
    bpftool will enabled libbfd and libopcodes which gets picked up by perf
    as libraries to link against. Add those missing dependencies when either
    of these packages are enabled.
    
    Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
---
 package/devel/perf/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index bbf3aaf9ce..eacdd0e2e5 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -27,7 +27,8 @@ include $(INCLUDE_DIR)/nls.mk
 define Package/perf
   SECTION:=devel
   CATEGORY:=Development
-  DEPENDS:= +libelf +libdw +PACKAGE_libunwind:libunwind +libpthread +librt +objdump @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS
+  DEPENDS:= +libelf +libdw +PACKAGE_libunwind:libunwind +libpthread +librt +objdump @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS \
+	    +PACKAGE_libbfd:libbfd +PACKAGE_libopcodes:libopcodes
   TITLE:=Linux performance monitoring tool
   VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
   URL:=http://www.kernel.org



More information about the lede-commits mailing list