From: Alberto Garcia Date: Mon, 10 May 2021 10:20:44 +0000 (+0100) Subject: Enable THREADS_PREFER_PTHREAD_FLAG X-Git-Tag: archive/raspbian/2.32.1-1_deb10u1+rpi1^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3dabb5887da206f10aa6d4d2cff4fc3381d47a6b;p=webkit2gtk.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/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake index af6c0facab..77cc77490b 100644 --- a/Source/cmake/OptionsGTK.cmake +++ b/Source/cmake/OptionsGTK.cmake @@ -7,6 +7,8 @@ SET_PROJECT_VERSION(2 32 1) 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) diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake index 10664400ca..d9aca95a55 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)