The play-audio binary links to libOpenSLES, which links indirectly
to libskia. As libskia links to both libpng and libjpeg this means
problems if either of those libraries are installed from a Termux
package into LD_LIBRARY_PATH.
Avoid this by placing the play-audio binary into libexec/, and let
bin/play-audio be a wrapper script which resets LD_LIBRARY_PATH
before calling the binary in libexec/. Fixes#103.
I put almost 3 hours on this!
It ships with a lot of makefiles for various platforms, notably
one for android_arm. I patched it a bit because Termux already gives
many of the goodies. Probably it could be simplified.
Most of the time went on tinkering with flags and waiting for the
Docker container to reload the new files...there must be a better way!
p7zip doesn't seem to honor $prefix, instead it uses $DEST_HOME.
The ControlMaster feature for multiplexing used hard links, which
does not work on Android starting in Android 6.0. Replace this
with a non-atomic check-then-rename for now. Fixes#91.
- Fix hardlink usage which doesn't work on Android 6.
- Enable header cache and depend on gdbm.
- Specify $PREFIX/bin/sh as exec shell to avoid trying /bin/sh.
Fixes#84.
- Avoid building bundled&broken (v)snprintf functions.
- Enable readline.
- Remove .desktop files and icon not used in Termux.
- Compile with -DUSE_TGAMMA to remove warning and improve speed.
- Compile with -DBOLD_COLOR to improve color visibility.