From 339bff3e07f5f924d3848cd6434f47b8a214a773 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Fri, 23 Oct 2020 11:18:03 +0100 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/OptionsGTK.cmake | 2 ++ Source/cmake/OptionsJSCOnly.cmake | 1 + 2 files changed, 3 insertions(+) diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake index 4e26d40f36..265976feb1 100644 --- a/Source/cmake/OptionsGTK.cmake +++ b/Source/cmake/OptionsGTK.cmake @@ -33,6 +33,8 @@ if (USER_AGENT_BRANDING) add_definitions(-DUSER_AGENT_BRANDING="${USER_AGENT_BRANDING}") endif () +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 316c624047..2f7126020d 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) -- 2.30.2