From: Fabrice Fontaine Date: Sun, 18 Aug 2019 12:12:26 +0200 Subject: [Buildroot] [PATCH/next 2/2] package/gauche: add optional mbedtls dependency In-Reply-To: <20190818101226.13205-1-fontaine.fabrice@gmail.com> References: <20190818101226.13205-1-fontaine.fabrice@gmail.com> Message-ID: <20190818101226.13205-2-fontaine.fabrice@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 --- package/gauche/gauche.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk index 1f66e28de7..2a30a2b39a 100644 --- a/package/gauche/gauche.mk +++ b/package/gauche/gauche.mk @@ -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 -- 2.20.1