Android/Termux: How to build gpg-agent without maintainer mode?

Felix E. Klee felix.klee at
Wed Aug 22 11:07:59 CEST 2018

I managed to get `gpg-agent` run with USB smart card support under

What bugs me is that I had to compile in maintainer mode: Now I get
warnings that the software should not used be used with production keys.

Maintainer mode is in fact suggested by ``:

    $ git clone git://
    $ cd gnupg
    $ export C_INCLUDE_PATH=$PREFIX/include/:$PREFIX/include/libusb-1.0/
    $ ./
    […] You may now run:
      ./configure --sysconfdir=/etc --enable-maintainer-mode  && make

If I try without maintainer mode, then I get:

    $ ./configure
    [output attached]
    $ make
    make  all-recursive
    make[1]: Entering directory '/data/data/com.termux/files/home/src/g/
    Making all in m4
    make[2]: Entering directory '/data/data/com.termux/files/home/src/g/
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/data/data/com.termux/files/home/src/g/
    Making all in common
    make[2]: Entering directory '/data/data/com.termux/files/home/src/g/
    make[2]: *** No rule to make target 'audit-events.h', needed by 'all
    '.  Stop.
    make[2]: Leaving directory '/data/data/com.termux/files/home/src/g/g
    make[1]: *** [Makefile:613: all-recursive] Error 1
    make[1]: Leaving directory '/data/data/com.termux/files/home/src/g/g
    make: *** [Makefile:533: all] Error 2

*How do I build `gpg-agent` without maintainer mode?*

Note that I only need the agent, so I could probably speed up compile
time by quite a lot if disable the other tools in `./configure`. But
that’s not a priority now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure_output
Type: application/octet-stream
Size: 18720 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list