diff --git a/packages/debug/libunwind/package.mk b/packages/debug/libunwind/package.mk index 790131dffd..a54f72cb9f 100644 --- a/packages/debug/libunwind/package.mk +++ b/packages/debug/libunwind/package.mk @@ -2,16 +2,20 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="libunwind" -PKG_VERSION="1.2.1" -PKG_SHA256="3f3ecb90e28cbe53fba7a4a27ccce7aad188d3210bb1964a923a731a27a75acb" +PKG_VERSION="1.3.1" +PKG_SHA256="43997a3939b6ccdf2f669b50fdb8a4d3205374728c2923ddc2354c65260214f8" PKG_LICENSE="GPL" PKG_SITE="http://www.nongnu.org/libunwind/" PKG_URL="http://download.savannah.nongnu.org/releases/libunwind/libunwind-${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain" PKG_LONGDESC="library to determine the call-chain of a program" +PKG_BUILD_FLAGS="+pic" PKG_CONFIGURE_OPTS_TARGET="--enable-static \ - --disable-shared" + --disable-shared \ + --disable-minidebuginfo \ + --disable-documentation \ + --disable-tests" makeinstall_target() { make DESTDIR=$SYSROOT_PREFIX install diff --git a/packages/debug/libunwind/patches/libunwind-0001-fix-multiple-definition.patch b/packages/debug/libunwind/patches/libunwind-0001-fix-multiple-definition.patch new file mode 100644 index 0000000000..68eb5f70a0 --- /dev/null +++ b/packages/debug/libunwind/patches/libunwind-0001-fix-multiple-definition.patch @@ -0,0 +1,26 @@ +From f40db1e2562934fd21485ba7f62e4521945f17e4 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 17 Feb 2020 05:52:10 +0000 +Subject: [PATCH] fix multiple definition + +https://lists.nongnu.org/archive/html/libunwind-devel/2017-08/msg00039.html +https://github.com/libunwind/libunwind/commit/0e74e583ae18d6852835f327921ee130a5fa3e6f +--- + include/tdep-arm/ex_tables.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/tdep-arm/ex_tables.h b/include/tdep-arm/ex_tables.h +index 9df5e0a..0b5388a 100644 +--- a/include/tdep-arm/ex_tables.h ++++ b/include/tdep-arm/ex_tables.h +@@ -47,6 +47,7 @@ struct arm_exbuf_data + #define arm_exidx_extract UNW_OBJ(arm_exidx_extract) + #define arm_exidx_decode UNW_OBJ(arm_exidx_decode) + #define arm_exidx_apply_cmd UNW_OBJ(arm_exidx_apply_cmd) ++#define arm_search_unwind_table UNW_OBJ(arm_search_unwind_table) + + int arm_exidx_extract (struct dwarf_cursor *c, uint8_t *buf); + int arm_exidx_decode (const uint8_t *buf, uint8_t len, struct dwarf_cursor *c); +-- +2.7.4 +