]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/CmakeLists.txt: Changes Linux type include libraries
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 24 Jul 2016 11:51:16 +0000 (13:51 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 2 Aug 2016 08:34:39 +0000 (10:34 +0200)
 - 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>
src/CMakeLists.txt

index 8a577d1edcbd070932836d96bc7be9010ca121ee..0597dad57fcba469176989d72b5eaa6a3279e98d 100644 (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)