From 3af602963c0e98cb588d6688562642483a340c93 Mon Sep 17 00:00:00 2001 From: Ian Craggs Date: Wed, 1 Apr 2020 20:41:57 +0100 Subject: [PATCH] Add rt library for glibc versions before 2.17 #631 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0639e280..5486d77e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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)