I am using this myself in Android app, where you can write files only inside /data/data/your.app.id/
So naturally, if you want to publish a different app, your.app.id will be different, so you need to recompile all your Linux tools that you bundle inside your app.
If you are not running your Linux tools on Android, you’d probably be better off using Docker or a chroot.









The executable will search for .so files not inside predefined paths like /usr/lib but inside it’s current directory. You may theoretically put
.as an argument toconfigure, but it converts that into an absolute path, snd libtool and linker fail when encountering relative paths inside shared library dependencies.