From: Alberto Garcia Date: Wed, 15 Feb 2023 21:52:14 +0000 (+0100) Subject: Enable THREADS_PREFER_PTHREAD_FLAG X-Git-Tag: archive/raspbian/2.48.1-2+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d03a437717e78cf7fd57cb0a01983229c798c3d8;p=wpewebkit.git 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 --- diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake index e892b4274..73bf9e4d5 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 c415aecc8..aab345cca 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.14.0 REQUIRED) find_package(Fontconfig 2.8.0 REQUIRED) find_package(Freetype 2.4.2 REQUIRED)