Skip to contentSkip to conversation

package/pkcs11-helper: fix build without threads

PATCH New Fabrice Fontaine 2 participants 2 messages May 1, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/pkcs11-helper/pkcs11-helper.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/pkcs11-helper/pkcs11-helper.mk +10 -0
index a95340daf7..4d0974dd0f 100644
@@ -48,4 +48,14 @@ PKCS11_HELPER_CONF_OPTS += \
 	--disable-crypto-engine-openssl
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+PKCS11_HELPER_CONF_OPTS += \
+	--enable-slotevent \
+	--enable-threading
+else
+PKCS11_HELPER_CONF_OPTS += \
+	--disable-slotevent \
+	--disable-threading
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 package/pkcs11-helper: fix build without threads

Fabrice, All,

On 2020-05-01 12:27 +0200, Fabrice Fontaine spake thusly:

Quoted 6 lines

Use --{en,dis}able-{threading,slotevent} to fix build without threads

Fixes:
- http://autobuild.buildroot.org/results/d6eefca3ab1fb86e148e998238eed1df2310775f

Applied to master, with two little changes: move earlier; use single-line assignments. Thanks!

Regards,
Yann E. MORIN.

Quoted 30 lines
---
 package/pkcs11-helper/pkcs11-helper.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/pkcs11-helper/pkcs11-helper.mk +10 -0
index a95340daf7..4d0974dd0f 100644
@@ -48,4 +48,14 @@ PKCS11_HELPER_CONF_OPTS += \
 	--disable-crypto-engine-openssl
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+PKCS11_HELPER_CONF_OPTS += \
+	--enable-slotevent \
+	--enable-threading
+else
+PKCS11_HELPER_CONF_OPTS += \
+	--disable-slotevent \
+	--disable-threading
+endif
+
 $(eval $(autotools-package))
Signature · 6 lines
2.26.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'