package/gauche: add optional mbedtls dependency

mbedtls support has been added in version 0.9.6 with
https://github.com/shirok/Gauche/commit/d449f013fae79639bb300d783962328c6b6b1bd0

So enable it if mbedtls is enabled and always enable embedded axTLS
support to keep existing behavior

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine
2019-08-19 15:22:36 +02:00
committed by Thomas Petazzoni
parent 73e836e139
commit 4035aca239
+10
View File
@@ -16,6 +16,16 @@ GAUCHE_AUTORECONF = YES
HOST_GAUCHE_CONF_OPTS = --without-zlib
GAUCHE_CONF_OPTS = --without-libatomic-ops
# Enable embedded axTLS
GAUCHE_TLS_LIBS = axtls
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
GAUCHE_TLS_LIBS += mbedtls
GAUCHE_DEPENDENCIES += mbedtls
endif
GAUCHE_CONF_OPTS += --with-tls="$(GAUCHE_TLS_LIBS)"
ifeq ($(BR2_PACKAGE_ZLIB),y)
GAUCHE_CONF_OPTS += --with-zlib=$(STAGING_DIR)
GAUCHE_DEPENDENCIES += zlib