[Buildroot] [PATCH 1/1] package/binutils: install libopcodes for perf

Lecopzer Chen lecopzer at gmail.com
Wed May 13 17:02:33 UTC 2020


After 5.6.x linux-tool perf installed, it can't be executed due
to lack of libopcodes:

    perf: ...libopcodes-2.33.1.so: cannot open shared object file

Signed-off-by: Lecopzer Chen <lecopzer at gmail.com>
---
 package/binutils/binutils.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 876c9c59f8..81308e2e81 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -112,6 +112,7 @@ endef
 ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
 define BINUTILS_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/opcodes DESTDIR=$(TARGET_DIR) install
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
 endef
 endif
-- 
2.25.1




More information about the buildroot mailing list