package/libgsasl: enable gcrypt support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 25 Jul 2020 10:18:29 +0000 (12:18 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 25 Jul 2020 11:01:06 +0000 (13:01 +0200)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libgsasl/libgsasl.mk

index 0cec9c73bddc1027948c6480bd0d1fd8dd0f3f05..40e7c4c918c55fe8e3d71166db60502d2c6a2361 100644 (file)
@@ -9,8 +9,13 @@ LIBGSASL_SITE = $(BR2_GNU_MIRROR)/gsasl
 LIBGSASL_LICENSE = LGPL-2.1+ (library), GPL-3.0+ (programs)
 LIBGSASL_LICENSE_FILES = README COPYING.LIB COPYING
 LIBGSASL_INSTALL_STAGING = YES
-# It doesn't seem to build with our libgcrypt so better be safe
+
+ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
+LIBGSASL_CONF_OPTS = --with-libgcrypt-prefix=$(STAGING_DIR)/usr
+LIBGSASL_DEPENDENCIES += libgcrypt
+else
 LIBGSASL_CONF_OPTS = --without-libgcrypt
+endif
 
 ifeq ($(BR2_PACKAGE_LIBIDN),y)
 LIBGSASL_CONF_OPTS += --with-libidn-prefix=$(STAGING_DIR)/usr