From: Alberto Garcia Date: Mon, 9 Sep 2024 12:22:28 +0000 (+0200) Subject: Enable THREADS_PREFER_PTHREAD_FLAG X-Git-Tag: archive/raspbian/2.46.0-2+rpi1^2^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=67ab6969bdb10aaafeaf4c78b660ea287081fc20;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 d2ba105849..86dcfab54d 100644 --- a/Source/cmake/OptionsGTK.cmake +++ b/Source/cmake/OptionsGTK.cmake @@ -13,6 +13,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) diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake index 31e353ded1..7bed31f438 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)