glib-networking: fix build failure with gnutls3
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 28 Dec 2012 09:47:21 +0000 (09:47 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 28 Dec 2012 20:56:11 +0000 (21:56 +0100)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/glib-networking/glib-networking.mk

index b1eec4d07c7cf03b61ba67a42264912bb6edde6c..e8d71e5480454b10b28eca9fb590f4faef3cfc56 100644 (file)
@@ -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))