From 174808651947428e68fd5380c8968ce26bb297d5 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 18 Apr 2022 23:54:12 +0200 Subject: [PATCH] package/mariadb: fix build with libressl Fix the following build failure with libressl: CMake Error: TRY_RUN() invoked in cross-compiling mode, please set the following cache variables appropriately: LIBRESSL_RESULT (advanced) LIBRESSL_RESULT__TRYRUN_OUTPUT (advanced) For details see /nvmedata/autobuild/instance-27/output-1/build/mariadb-10.3.34/TryRunResults.cmake Fixes: - http://autobuild.buildroot.org/results/cbdbfcdae4b89ac678e1bf6bcded96872c7223ab Signed-off-by: Fabrice Fontaine Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/mariadb/mariadb.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/mariadb/mariadb.mk b/package/mariadb/mariadb.mk index 4eb9c71827..18667e7e70 100644 --- a/package/mariadb/mariadb.mk +++ b/package/mariadb/mariadb.mk @@ -60,6 +60,12 @@ MARIADB_CONF_OPTS += -DCMAKE_CROSSCOMPILING=1 # Explicitly disable dtrace to avoid detection of a host version MARIADB_CONF_OPTS += -DENABLE_DTRACE=0 +ifeq ($(BR2_PACKAGE_LIBRESSL),y) +MARIADB_CONF_OPTS += \ + -DLIBRESSL_RESULT=ON \ + -DLIBRESSL_RESULT__TRYRUN_OUTPUT="LibreSSL $(LIBRESSL_VERSION)" +endif + ifeq ($(BR2_PACKAGE_MARIADB_SERVER),y) ifeq ($(BR2_PACKAGE_MARIADB_SERVER_EMBEDDED),y) MARIADB_CONF_OPTS += -DWITH_EMBEDDED_SERVER=ON