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 12:09:31 +1000 |
commit | cc3105e100e9b07ce6ab24f58efd1bb9d42570aa (patch) | |
tree | 42d4a858ccb303077d735b3b9a6564c58fdd89a0 | |
parent | 13d0641710802bd57b0c0d88c9fc321932014994 (diff) | |
download | mariadb-git-cc3105e100e9b07ce6ab24f58efd1bb9d42570aa.tar.gz |
Fix riscv64 build failure by linking correctly with pthreadbb-10.3-ottok-MDEV-23892-pthread
Link with -pthread instead of -lpthread, and do that for all architectures.
Contributors:
Aurelien Jarno <aurelien@aurel32.net>
Closes: #1717
-rw-r--r-- | configure.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index ad2626e0357..1b85c31bdf4 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 |