summaryrefslogtreecommitdiffstats
path: root/package/glib-networking
diff options
context:
space:
mode:
Diffstat (limited to 'package/glib-networking')
-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 b1eec4d07..e8d71e548 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))