From 0199dc161769e5f28e9aebc634230ece08ff5008 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 1 May 2020 12:27:58 +0200 Subject: [PATCH] package/pkcs11-helper: fix build without threads Use --{en,dis}able-{threading,slotevent} to fix build without threads Fixes: - http://autobuild.buildroot.org/results/d6eefca3ab1fb86e148e998238eed1df2310775f Signed-off-by: Fabrice Fontaine [yann.morin.1998@free.fr: move earlier; use single-line assignments] Signed-off-by: Yann E. MORIN --- package/pkcs11-helper/pkcs11-helper.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/pkcs11-helper/pkcs11-helper.mk b/package/pkcs11-helper/pkcs11-helper.mk index a95340daf7..a651be98bb 100644 --- a/package/pkcs11-helper/pkcs11-helper.mk +++ b/package/pkcs11-helper/pkcs11-helper.mk @@ -16,6 +16,12 @@ PKCS11_HELPER_CONF_OPTS = \ --disable-crypto-engine-polarssl \ --disable-crypto-engine-cryptoapi +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +PKCS11_HELPER_CONF_OPTS += --enable-slotevent --enable-threading +else +PKCS11_HELPER_CONF_OPTS += --disable-slotevent --disable-threading +endif + ifeq ($(BR2_PACKAGE_GNUTLS),y) PKCS11_HELPER_DEPENDENCIES += gnutls PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-gnutls -- 2.30.2