From a791ac8c2e593d347373d3c64df70be8a507bca6 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Tue, 30 Oct 2018 15:38:16 +0200 Subject: [PATCH] binutils: fix search dir order --- packages/binutils/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/binutils/build.sh b/packages/binutils/build.sh index ef43ff8f3..396a69ac8 100755 --- a/packages/binutils/build.sh +++ b/packages/binutils/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/binutils/ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler" TERMUX_PKG_VERSION=2.31.1 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SHA256=e88f8d36bd0a75d3765a4ad088d819e35f8d7ac6288049780e2fefcad18dde88 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gold --enable-plugins --disable-werror --with-system-zlib --enable-new-dtags" @@ -14,6 +14,12 @@ export LEXLIB= termux_step_pre_configure () { export CPPFLAGS="$CPPFLAGS -Wno-c++11-narrowing" + + if [ TERMUX_ARCH_BITS = 32 ]; then + export LIB_PATH="${TERMUX_PREFIX}/lib:/system/lib" + else + export LIB_PATH="${TERMUX_PREFIX}/lib:/system/lib64" + fi } termux_step_post_make_install () {