play-audio: Fix shared library clash
authorFredrik Fornwall <fredrik@fornwall.net>
Tue, 22 Dec 2015 22:34:50 +0000 (17:34 -0500)
committerFredrik Fornwall <fredrik@fornwall.net>
Tue, 22 Dec 2015 22:34:50 +0000 (17:34 -0500)
commit433f51009fa1366a2ce062cb6468f8395106de10
treec5972eb189e857e7390785920c61fb99b19ff642
parent47cf371b0d964dd137d8d3fb32a4980054506f07
play-audio: Fix shared library clash

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.
packages/play-audio/build.sh