projects
/
ceph.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8434ed
)
Link with -pthread instead of -lpthread to fix FTBFS on riscv64
author
Ceph Packaging Team
<team+ceph@tracker.debian.org>
Fri, 15 Jul 2022 15:27:25 +0000
(16:27 +0100)
committer
Thomas Goirand
<zigo@debian.org>
Fri, 15 Jul 2022 15:27:25 +0000
(16:27 +0100)
Forwarded: no
Last-Update: 2020-03-01
Gbp-Pq: Name riscv64-link-pthread.patch
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index ffbbc882ec53733037e2d52dea30f0bb7898afec..f066c5e357447d487b61eeff58e431f53bca2bc9 100644
(file)
--- 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)