Fix build on Linux with some glibcs
authorkwolekr <kwolekr@minetest.net>
Sat, 30 Mar 2013 01:08:35 +0000 (21:08 -0400)
committerkwolekr <kwolekr@minetest.net>
Sat, 30 Mar 2013 01:12:14 +0000 (21:12 -0400)
src/CMakeLists.txt

index 8f0cc1ac5ab32f773c188003496b13ffb66093a3..d6182861fa3dc0ee3681c2c021c169777e0cf89c 100644 (file)
@@ -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)