Add rt library for glibc versions before 2.17 #631

This commit is contained in:
Ian Craggs 2020-04-01 20:41:57 +01:00
parent da27daf7be
commit 3af602963c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ IF (WIN32)
SET(LIBS_SYSTEM ws2_32 crypt32 RpcRT4)
ELSEIF (UNIX)
IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(LIBS_SYSTEM c dl pthread anl)
SET(LIBS_SYSTEM c dl pthread anl rt)
ADD_DEFINITIONS(-D_GNU_SOURCE -fvisibility=hidden)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Android")
SET(LIBS_SYSTEM c dl)