src/CmakeLists.txt: Changes Linux type include libraries

- On FreeBSD libuuid, libresolv, libdl are all in libc.
   So do not use them while linking, otherwise missing lib errors
   will result
 - libdl is sorted out by stdard CMake functionality

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
Willem Jan Withagen 2016-07-24 13:51:16 +02:00
parent 8ba3eaac25
commit b175a86460

View File

@ -217,8 +217,11 @@ else(INTEL_SSE4_1)
message(STATUS "Skipping target ec_jerasure_sse4 & ec_shec_sse4: -msse4.1 not supported")
endif(INTEL_SSE4_1)
set(EXTRALIBS rt ${CMAKE_DL_LIBS} ${ATOMIC_OPS_LIBRARIES})
if(LINUX)
set(LIB_RESOLV resolv)
list(APPEND EXTRALIBS ${LIB_RESOLV})
endif(LINUX)
option(WITH_PROFILER "build extra profiler binaries" OFF)
if(WITH_PROFILER)