gnutls: handle libidn properly
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Jan 2013 04:50:10 +0000 (04:50 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 2 Jan 2013 14:52:58 +0000 (15:52 +0100)
Add it to the dependencies when it's available.
But disable crywrap when it's a nommu system since it uses fork()

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/gnutls/gnutls.mk

index 1cbcf702191e3704ab1ad76622b359380db58f3b..4c918c1f8b202125d54f710e5505eb98a6e5a8e1 100644 (file)
@@ -20,6 +20,10 @@ GNUTLS_INSTALL_STAGING = YES
 # libpthread autodetection poisons the linkpath
 GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr)
 
+# libidn support for nommu must exclude the crywrap wrapper (uses fork)
+GNUTLS_CONF_OPT += $(if $(BR2_USE_MMU),,--disable-crywrap)
+GNUTLS_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBIDN),libidn)
+
 # Some examples in doc/examples use wchar
 define GNUTLS_DISABLE_DOCS
        $(SED) 's/ doc / /' $(@D)/Makefile.in