[openwrt/openwrt] perf: restrict libunwind dependency to archs that actually support libunwind

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 25 08:08:47 PST 2018


neoraider pushed a commit to openwrt/openwrt.git, branch lede-17.01:
https://git.lede-project.org/01d7a5d7dee247c40a7ecfbd7ba221640752e76f

commit 01d7a5d7dee247c40a7ecfbd7ba221640752e76f
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Fri Feb 23 16:17:57 2018 +0100

    perf: restrict libunwind dependency to archs that actually support libunwind
    
    Allow building perf on uncommon targets again.
    
    Depending on the kernel version, not all of these archs will actually use
    libunwind in perf. Still, it seems simpler and less error-prone to use the
    same list that is defined in the libunwind package.
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 package/devel/perf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index 9cfa17f..95b3689 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -26,7 +26,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/perf
   SECTION:=devel
   CATEGORY:=Development
-  DEPENDS:= +libelf1 +libdw +libunwind +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK
+  DEPENDS:= +libelf1 +libdw +(mips||mipsel||powerpc||i386||x86_64||arm):libunwind +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK
   TITLE:=Linux performance monitoring tool
   VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
   URL:=http://www.kernel.org



More information about the lede-commits mailing list