proot: termux-chroot needs to bind /linkerconfig/ld.config.txt on Android 11

Without /linkerconfig/ld.config.txt, dynamic linker will unable to find
shared libraries provided by APEX modules.
This commit is contained in:
Leonid Pliushch 2021-02-01 18:57:09 +02:00
parent 11e6365843
commit 0729cb17ab
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux"
# Just bump commit and version when needed:
_COMMIT=336f4787d64e377039143ad2a50139aee4e10ad4
TERMUX_PKG_VERSION=5.1.107
TERMUX_PKG_REVISION=35
TERMUX_PKG_REVISION=36
TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=09507f94151467ecc45b82b4300f2fd4579d055446c5122f92b1f34a505eb655
TERMUX_PKG_DEPENDS="libtalloc"

View File

@ -45,6 +45,11 @@ if [ -d /apex ]; then
ARGS="$ARGS -b /apex:/apex"
fi
# Android 11.
if [ -e "/linkerconfig/ld.config.txt" ]; then
ARGS="$ARGS -b /linkerconfig/ld.config.txt:/linkerconfig/ld.config.txt"
fi
if [ -f /property_contexts ]; then
# Used by getprop (see https://github.com/termux/termux-packages/issues/1076)
# but does not exist on Android 8.