ideas for library loading for gpgme on Android

Hans-Christoph Steiner hans at guardianproject.info
Fri Aug 31 03:52:51 CEST 2012


So Android has a very limited linker, and the _only_ way to specify load
paths for shared libraries is with the LD_LIBRARY_PATH env var.  By
default, LD_LIBRARY_PATH is set to:

LD_LIBRARY_PATH=/vendor/lib:/system/lib

So that even the most basic programs can find libc.  This is easy enough
to do in an Android app when calling the various GnuPG command line
tools directly (gpg2, gpg-agent, etc).  But we want to use gpgme, which
as far as I understand it, is a library that then calls the various
command line tools.

I can think of many hackish ways to set LD_LIBRARY_PATH for gpgme, but I
was wondering if anyone has any ideas for how to do it best.  Do any
other platforms have a similar situation?

.hc



More information about the Gnupg-devel mailing list