libtree-ldd: fix libpath on 64-bit systems

This commit is contained in:
Lucy Phipps 2022-09-27 11:17:06 +01:00
parent dfeac44fac
commit 47086b732a
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Like ldd(1), but prints a tree(1) like output"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@flosnvjx"
TERMUX_PKG_VERSION=3.1.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/haampie/libtree/archive/refs/tags/v"$TERMUX_PKG_VERSION".tar.gz
TERMUX_PKG_SHA256=6148436f54296945d22420254dd78e1829d60124bb2f5b9881320a6550f73f5c
TERMUX_PKG_DEPENDS="libandroid-glob"

View File

@ -7,7 +7,7 @@ index e0d0133..0fe311b 100644
s->default_paths_offset = s->string_table.n;
// TODO: how to retrieve this list properly at runtime?
- string_table_store(&s->string_table, "/lib:/lib64:/usr/lib:/usr/lib64");
+ string_table_store(&s->string_table, "@TERMUX_PREFIX@/lib:/system/lib:/usr/lib:/usr/lib64:/lib:/lib64");
+ string_table_store(&s->string_table, "@TERMUX_PREFIX@/lib:/system/lib:/system/lib64:/usr/lib:/usr/lib64:/lib:/lib64");
}
static void libtree_state_init(struct libtree_state_t *s) {