summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-12-28 09:47:21 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-12-28 20:56:11 (GMT)
commit484652cbd8d4a647f7833b2e032d0d37147e8424 (patch)
tree7168de813809f39fb9ba84907302da3151290be9
parent2007e3b1ef5e6e2e646750496c7496ce831aae01 (diff)
downloadbuildroot-484652cbd8d4a647f7833b2e032d0d37147e8424.tar.gz
buildroot-484652cbd8d4a647f7833b2e032d0d37147e8424.tar.bz2
glib-networking: fix build failure with gnutls3
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/glib-networking/glib-networking.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk
index b1eec4d..e8d71e5 100644
--- a/package/glib-networking/glib-networking.mk
+++ b/package/glib-networking/glib-networking.mk
@@ -25,4 +25,11 @@ else
GLIB_NETWORKING_CONF_OPT += --without-gnutls
endif
+# gnutls 3.x+ doesn't use libgcrypt, it uses nettle/hogweed
+define GLIB_NETWORKING_NO_LIBGCRYPT
+ $(SED) 's:#include <gcrypt.h>::' $(@D)/tls/gnutls/gtlsbackend-gnutls.c
+endef
+
+GLIB_NETWORKING_POST_EXTRACT_HOOKS += GLIB_NETWORKING_NO_LIBGCRYPT
+
$(eval $(autotools-package))