Skip to content

Commit

Permalink
MDEV-12473 - fix rocksdb linking error
Browse files Browse the repository at this point in the history
link rocksdb with librt, for clock_gettime()
  • Loading branch information
vaintroub committed Apr 7, 2017
1 parent 85da56b commit a33653e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/rocksdb/build_rocksdb.cmake
Expand Up @@ -132,7 +132,7 @@ find_package(Threads REQUIRED)
if(WIN32)
set(SYSTEM_LIBS ${SYSTEM_LIBS} Shlwapi.lib Rpcrt4.lib)
else()
set(SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT})
set(SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT} ${LIBRT})
endif()

set(ROCKSDB_LIBS rocksdblib})
Expand Down

0 comments on commit a33653e

Please sign in to comment.