From: kwolekr Date: Sat, 30 Mar 2013 01:08:35 +0000 (-0400) Subject: Fix build on Linux with some glibcs X-Git-Tag: 0.4.6~22^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6cf581e3604bfb9a0e91d1a016a5e5ba605bfefa;p=oweals%2Fminetest.git Fix build on Linux with some glibcs --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8f0cc1ac5..d6182861f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -161,7 +161,7 @@ else() endif(APPLE) endif(BUILD_CLIENT) find_package(ZLIB REQUIRED) - set(PLATFORM_LIBS -lpthread ${CMAKE_DL_LIBS}) + set(PLATFORM_LIBS -lpthread -lrt ${CMAKE_DL_LIBS}) #set(CLIENT_PLATFORM_LIBS -lXxf86vm) # This way Xxf86vm is found on OpenBSD too find_library(XXF86VM_LIBRARY Xxf86vm)