From stable-2.0: explicitly check for pthread library, and link against it.
This commit is contained in:
parent
7be76515a5
commit
06edd385fc
|
@ -177,6 +177,11 @@ if(UNIX)
|
|||
if(HAVE_PTHREAD_H)
|
||||
set(PHYSFS_HAVE_THREAD_SUPPORT TRUE)
|
||||
endif()
|
||||
|
||||
find_library(PTHREAD_LIBRARY pthread)
|
||||
if(PTHREAD_LIBRARY)
|
||||
set(OPTIONAL_LIBRARY_LIBS ${OPTIONAL_LIBRARY_LIBS} ${PTHREAD_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue