There is always libhybris project which lets you use Android (bionic) libraries on ordinary (glibc) Linux. The catch is that if you intend to use some non standard library, you have to extend libhybris source with wrapper for it (or at least I understand it that way). Oh, did I mention that you also need other Android libraries, on which your lib depends (and dependencies of those libs and so on)? But at least they can be extracted from some Android image.