From 8510ff720072caa6e598572fa21cff10aff49046 Mon Sep 17 00:00:00 2001 From: Nicola Di Lieto Date: Fri, 29 Sep 2023 09:55:17 +0200 Subject: [PATCH] uacme: fix static builds with BR2_PACKAGE_MBEDTLS_COMPRESSION Fixes: http://autobuild.buildroot.net/results/2083eca8030e3f7ed8df388a7c29bc5d672b9512/ Uacme hardcodes the mbedtls linker flags / mbedtls does not provide a .pc file, so we need to manually also link with zlib if mbedtls is built with compression support. Signed-off-by: Nicola Di Lieto [Peter: Extend commit message] Signed-off-by: Peter Korsgaard --- package/uacme/uacme.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/uacme/uacme.mk b/package/uacme/uacme.mk index 9b2360937b..b260bd85ee 100644 --- a/package/uacme/uacme.mk +++ b/package/uacme/uacme.mk @@ -13,12 +13,15 @@ UACME_LICENSE = GPL-3.0+ UACME_LICENSE_FILES = COPYING UACME_DEPENDENCIES = libcurl -UACME_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' +UACME_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99' LIBS="$(UACME_LIBS)" ifeq ($(BR2_PACKAGE_GNUTLS),y) UACME_CONF_OPTS += --with-gnutls UACME_DEPENDENCIES += gnutls else ifeq ($(BR2_PACKAGE_MBEDTLS),y) +ifeq ($(BR2_PACKAGE_MBEDTLS_COMPRESSION),y) + UACME_LIBS += -lz +endif UACME_CONF_OPTS += --with-mbedtls UACME_DEPENDENCIES += mbedtls else ifeq ($(BR2_PACKAGE_OPENSSL),y)