From 52683fb48d739d5721256734d5a9b168575dbfbf Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 18 May 2019 03:37:00 +0300 Subject: [PATCH] aria2: fix issues with exceptions on ARM --- packages/aria2/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/aria2/build.sh b/packages/aria2/build.sh index c443d9dc0..26459ecf1 100644 --- a/packages/aria2/build.sh +++ b/packages/aria2/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://aria2.github.io TERMUX_PKG_DESCRIPTION="Download utility supporting HTTP/HTTPS, FTP, BitTorrent and Metalink" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=1.34.0 -TERMUX_PKG_REVISION=4 +TERMUX_PKG_REVISION=5 TERMUX_PKG_SHA256=3a44a802631606e138a9e172a3e9f5bcbaac43ce2895c1d8e2b46f30487e77a3 TERMUX_PKG_SRCURL=https://github.com/aria2/aria2/releases/download/release-${TERMUX_PKG_VERSION}/aria2-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_DEPENDS="c-ares, openssl, libxml2, zlib" @@ -20,3 +20,9 @@ ac_cv_func_sleep=yes ac_cv_func_usleep=yes ac_cv_search_getaddrinfo=no " + +termux_step_pre_configure() { + if [ $TERMUX_ARCH = "arm" ]; then + CXXFLAGS+=" -lunwind -Wl,--exclude-libs=libunwind.a" + fi +}