[Buildroot] [PATCH] libgpgme: handle argp-standalone

Gustavo Zacarias gustavo at zacarias.com.ar
Wed Jul 31 18:44:02 UTC 2013

libgpgme has an internal implementation of argp parsing for when the
libc lacks such an implementation (i.e. uClibc).
However if it detects argp.h the internal implementation is disabled and
for a uClibc-based toolchain that breaks the build.
This happens when argp-standalone is installed since libgpgme never
tries to link to libargp.

Make it link against libargp, which also saves some target size. Fixes:

Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
 package/libgpgme/libgpgme.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/libgpgme/libgpgme.mk b/package/libgpgme/libgpgme.mk
index ee983df..7b71855 100644
--- a/package/libgpgme/libgpgme.mk
+++ b/package/libgpgme/libgpgme.mk
@@ -11,6 +11,12 @@ LIBGPGME_LICENSE = LGPLv2.1+
+# Handle argp-standalone or it errors out during build
+LIBGPGME_DEPENDENCIES += argp-standalone
 # libgpgme, needs to know the gpg binary path on the target.
 LIBGPGME_CONF_OPT = --with-gpg=/usr/bin/gpg \
 	--with-gpg-error-prefix=$(STAGING_DIR)/usr \

More information about the buildroot mailing list