From: Ceph Packaging Team Date: Wed, 21 Apr 2021 08:02:07 +0000 (+0100) Subject: Link with -pthread instead of -lpthread to fix FTBFS on riscv64 X-Git-Tag: archive/raspbian/14.2.20-2+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f786fdefaff22e2052a9e4bb81c0e6f6ffaac48a;p=ceph.git Link with -pthread instead of -lpthread to fix FTBFS on riscv64 Forwarded: no Last-Update: 2020-03-01 Gbp-Pq: Name riscv64-link-pthread.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6afd9c3db..0f883307e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules/") if(CMAKE_SYSTEM_NAME MATCHES "Linux") set(LINUX ON) + set(THREADS_PREFER_PTHREAD_FLAG ON) FIND_PACKAGE(Threads) elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") set(FREEBSD ON)