From 6479d6bb6f29bbace7ba0c3c22ecf0edb003030f Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 30 Oct 2017 00:48:49 +0300 Subject: [PATCH] #157 Explicitly add linking with librt, probably fix build issue with some old Linux. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e102fc5b..fc01ed305 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -130,7 +130,7 @@ else() src/Platform_unix.cpp ) - set(EXTRA_LIBS pthread) + set(EXTRA_LIBS pthread rt) endif() if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD)