diff options
author | Otto Kekäläinen <otto@kekalainen.net> | 2020-12-20 20:52:51 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-04-15 11:39:42 +1000 |
commit | de746304c985b03bc3c673dc6ae1d499bb38faf9 (patch) | |
tree | aabf166b0947398fcdae871a2a27a326b0ae4ea3 /configure.cmake | |
parent | f26e3259a15cc26dac0a0a77e2488abb87892cf4 (diff) | |
download | mariadb-git-de746304c985b03bc3c673dc6ae1d499bb38faf9.tar.gz |
Fix riscv64 build failure by linking correctly with pthreadbb-10.5-ottok-pr1722-conc-utf8
Link with -pthread instead of -lpthread, and do that for all architectures.
Contributors:
Aurelien Jarno <aurelien@aurel32.net>
Closes: #1717
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 0bcf81d8c64..8383b6921f8 100644 --- a/configure.cmake +++ b/configure.cmake @@ -134,6 +134,7 @@ IF(UNIX) IF(NOT LIBRT) MY_SEARCH_LIBS(clock_gettime rt LIBRT) ENDIF() + set(THREADS_PREFER_PTHREAD_FLAG ON) FIND_PACKAGE(Threads) SET(CMAKE_REQUIRED_LIBRARIES |