Browse Source

mpv: Try to work around shared library clashes

Use LD_LIBRARY_PATH=/system/lib:$PREFIX/lib to have platform
libraries used first.
android-5
Fredrik Fornwall 8 years ago
parent
commit
a64fd6b144
  1. 10
      disabled-packages/mpv/build.sh

10
disabled-packages/mpv/build.sh

@ -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…
Cancel
Save