From dffe3efe42807bc97f511a3daa5fd030f7a8ddc3 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Wed, 15 May 2024 11:05:32 +0200 Subject: [PATCH] Enable THREADS_PREFER_PTHREAD_FLAG Bug: https://bugs.webkit.org/show_bug.cgi?id=182622 Bug-Debian: https://bugs.debian.org/895969 Origin: https://trac.webkit.org/changeset/231843 This fixes a FTBFS in riscv64 =================================================================== Gbp-Pq: Name prefer-pthread.patch --- Source/cmake/OptionsJSCOnly.cmake | 1 + Source/cmake/OptionsWPE.cmake | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake index 31e353ded..7bed31f43 100644 --- a/Source/cmake/OptionsJSCOnly.cmake +++ b/Source/cmake/OptionsJSCOnly.cmake @@ -1,3 +1,4 @@ +set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) if (MSVC) diff --git a/Source/cmake/OptionsWPE.cmake b/Source/cmake/OptionsWPE.cmake index cbf8ffd34..6d89a9fb5 100644 --- a/Source/cmake/OptionsWPE.cmake +++ b/Source/cmake/OptionsWPE.cmake @@ -11,6 +11,8 @@ endif () set(USER_AGENT_BRANDING "" CACHE STRING "Branding to add to user agent string") +set(THREADS_PREFER_PTHREAD_FLAG ON) + find_package(Cairo 1.16.0 REQUIRED) find_package(Fontconfig 2.13.0 REQUIRED) find_package(Freetype 2.9.0 REQUIRED) -- 2.30.2