From: Ceph Packaging Team Date: Thu, 3 Dec 2020 20:03:06 +0000 (+0000) Subject: Link with -pthread instead of -lpthread to fix FTBFS on riscv64 X-Git-Tag: archive/raspbian/14.2.15-3+rpi1~1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=196ec987170f84eb4ca295715fd83195c0d31aff;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 8ec723f0e..32f0928ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,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)