Skip to content

Commit

Permalink
fix(main/liblightning): Run "autoreconf -fi"
Browse files Browse the repository at this point in the history
to detect current $TERMUX_PREFIX state and prevent
"ld.lld: error: unable to find library -liberty"
when the binutils-libs package was already installed in the same
$TERMUX_PREFIX before building liblightning.
  • Loading branch information
robertkirkman committed Oct 27, 2024
1 parent 6797f48 commit 3bf2780
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/liblightning/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ TERMUX_PKG_DESCRIPTION="A library to aid in making portable programs that compil
TERMUX_PKG_LICENSE="GPL-3.0, LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.2.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/lightning/lightning-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4e3984ff1ccf0ba30a985211d40fc5c06b25f014ebdf3d80d0fe3d0c80dd7c0e
TERMUX_PKG_DEPENDS="zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_func_ffsl=yes
"

# Fixes "ld.lld: error: unable to find library -liberty" anytime the binutils-libs
# package was installed in the same $TERMUX_PREFIX before the build of liblightning.
termux_step_pre_configure() {
autoreconf -fi
}

0 comments on commit 3bf2780

Please sign in to comment.