From: Fabrice Fontaine Date: Fri, 1 May 2020 10:27:58 +0000 (+0200) Subject: package/pkcs11-helper: fix build without threads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0199dc161769e5f28e9aebc634230ece08ff5008;p=buildroot.git 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 --- 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