# Now find libraries and headers
LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "m")
+LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "pthread")
+
IF(ENABLE_LUAJIT MATCHES "ON")
ProcessPackage(LIBLUAJIT LIBRARY "luajit"
"luajit-2.1"
ProcessPackage(JEMALLOC LIBRARY jemalloc_pic jemalloc INCLUDE jemalloc.h INCLUDE_SUFFIXES include/jemalloc
ROOT ${JEMALLOC_ROOT_DIR})
SET(WITH_JEMALLOC "1")
- LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread")
ENDIF()
IF(ENABLE_LIBUNWIND MATCHES "ON")
CMAKE_FLAGS CMAKE_C_FLAGS="-pthread")
IF(_CAN_RUN EQUAL 1)
SET(HAVE_PTHREAD_PROCESS_SHARED 1 CACHE INTERNAL "")
- LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "-lpthread")
ENDIF(_CAN_RUN EQUAL 1)
IF(HAVE_PTHREAD_PROCESS_SHARED)
MESSAGE(STATUS "pthread_mutexattr_setpshared is supported")