From: Ceph Packaging Team Date: Wed, 4 Dec 2024 05:46:17 +0000 (+0100) Subject: Link with -pthread instead of -lpthread to fix FTBFS on riscv64 X-Git-Tag: archive/raspbian/16.2.15+ds-0+deb12u1+rpi1~1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=00f0a5e255a49c19c357b1142550afd93fde120c;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 3b699e5af..767cd311c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,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)