mpv: Try to work around shared library clashes
Use LD_LIBRARY_PATH=/system/lib:$PREFIX/lib to have platform libraries used first.
This commit is contained in:
parent
aafa75a8bb
commit
a64fd6b144
@ -28,4 +28,14 @@ termux_step_make_install () {
|
||||
--disable-libass
|
||||
|
||||
./waf install
|
||||
|
||||
# Try to work around OpenSL ES library clashes:
|
||||
mkdir -p $TERMUX_PREFIX/libexec
|
||||
mv $TERMUX_PREFIX/bin/mpv $TERMUX_PREFIX/libexec
|
||||
|
||||
local SYSTEM_LIBFOLDER=lib64
|
||||
if [ $TERMUX_ARCH_BITS = 32 ]; then SYSTEM_LIBFOLDER=lib; fi
|
||||
echo "#!/bin/sh" > $TERMUX_PREFIX/bin/mpv
|
||||
echo "LD_LIBRARY_PATH=/system/$SYSTEM_LIBFOLDER:$TERMUX_PREFIX/lib $TERMUX_PREFIX/libexec/mpv \$@" >> $TERMUX_PREFIX/bin/mpv
|
||||
chmod +x $TERMUX_PREFIX/bin/mpv
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user