All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/libwebsockets: fix build without threads
@ 2022-04-21 17:53 Arnout Vandecappelle
  0 siblings, 0 replies; only message in thread
From: Arnout Vandecappelle @ 2022-04-21 17:53 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=c435d4ec60432f96abbc58cd1daf190528fafaa3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fix the following build failure without threads raised since bump to
version 4.3.1 in commit 3a9cf51ab38b6a3a095241b8e87eab7e5b5bd617 and
https://github.com/warmcat/libwebsockets/commit/8eca7e17f27c8588170c5fa5fa3e6b14eb90e35d:

In file included from /nvmedata/autobuild/instance-1/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-caps.c:28:
/nvmedata/autobuild/instance-1/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:68:11: fatal error: pthread.h: No such file or directory
   68 |  #include <pthread.h>
      |           ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/5d011b65e530339eb3f4d06a08caabc6a73b403b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/libwebsockets/libwebsockets.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index f8093b92fa..63d50999a5 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -20,9 +20,13 @@ LIBWEBSOCKETS_CONF_OPTS = \
 # in the library. If unset, LWS_MAX_SMP defaults to 32 and a small
 # amount of pthread mutex code is built into the library.
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
-LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=1
+LIBWEBSOCKETS_CONF_OPTS += \
+	-DLWS_MAX_SMP=1 \
+	-DLWS_WITH_SYS_SMD=OFF
 else
-LIBWEBSOCKETS_CONF_OPTS += -DLWS_MAX_SMP=
+LIBWEBSOCKETS_CONF_OPTS += \
+	-DLWS_MAX_SMP= \
+	-DLWS_WITH_SYS_SMD=ON
 endif
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-21 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 17:53 [Buildroot] [git commit] package/libwebsockets: fix build without threads Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.