From c2c2d786aec4a2bb47a7379ebe8cb6437e89a866 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 24 Dec 2022 08:27:50 +0200 Subject: [PATCH 26/26] Emscripten: Fix threads setup See osdn #46334 Signed-off-by: Marko Lindqvist --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 8b413e4bf9..96fa0a6d10 100644 --- a/configure.ac +++ b/configure.ac @@ -999,6 +999,11 @@ LIBS_SAVE="${LIBS}" if test "x$fctinycthr" = "xyes" ; then thread_impl_c=tinycthread thread_impl_cpp=tinycthread +elif test "x$emscripten" = "xyes" ; then + thread_impl_c=pthreads + thread_impl_cpp=pthreads + CFLAGS="$CFLAGS -s USE_PTHREADS=1" + CXXFLAGS="$CXXFLAGS -s USE_PTHREADS=1" fi if test "x$thread_impl_c" = "xnone" ; then -- 2.35.1