Skip to content

Commit

Permalink
Fix riscv64 build failure by linking correctly with pthread
Browse files Browse the repository at this point in the history
Link with -pthread instead of -lpthread, and do that for all architectures.

Contributors:
Aurelien Jarno <aurelien@aurel32.net>

Closes: #1717
  • Loading branch information
ottok authored and grooverdan committed Apr 15, 2021
1 parent f26e325 commit de74630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de74630

Please sign in to comment.