]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CmakeLists.txt: use LIB_RESOLV instead of resolv. 10972/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 3 Sep 2016 13:58:20 +0000 (15:58 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 3 Sep 2016 14:02:13 +0000 (16:02 +0200)
 - FreeBSD does not have a separate libresolv, but keeps it in
   libc

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/CMakeLists.txt
src/rgw/CMakeLists.txt

index 9afe2b3ef91e3839b46b5e2dcdd34445a6b5753f..9e68e8f8b457226a959af4d6ec9ed2df2f821a0e 100644 (file)
@@ -458,7 +458,7 @@ endif(ENABLE_SHARED)
 add_library(common STATIC ${libcommon_files}
   $<TARGET_OBJECTS:mon_common_objs>
   $<TARGET_OBJECTS:common_mountcephfs_objs>)
-target_link_libraries(common json_spirit erasure_code rt resolv
+target_link_libraries(common json_spirit erasure_code rt ${LIB_RESOLV}
   ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES}
   ${CRYPTO_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
 
index 1c48444afb420c06dad937898eab7c45b6422e7e..9014eba81a1a6b31d7753a3421e3966531b4e0b8 100644 (file)
@@ -109,7 +109,7 @@ target_link_libraries(radosgw rgw_a librados
   cls_rgw_client cls_lock_client cls_refcount_client
   cls_log_client cls_statelog_client cls_timeindex_client
   cls_version_client cls_replica_log_client cls_user_client
-  global fcgi resolv
+  global fcgi ${LIB_RESOLV}
   ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} ${SSL_LIBRARIES} ${BLKID_LIBRARIES}
   ${ALLOC_LIBS})
 # radosgw depends on cls libraries at runtime, but not as link dependencies
@@ -126,7 +126,7 @@ target_link_libraries(radosgw-admin rgw_a librados
   cls_rgw_client cls_lock_client cls_refcount_client
   cls_log_client cls_statelog_client cls_timeindex_client
   cls_version_client cls_replica_log_client cls_user_client
-  global fcgi resolv
+  global fcgi ${LIB_RESOLV}
   ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} ${SSL_LIBRARIES} ${BLKID_LIBRARIES})
 install(TARGETS radosgw-admin DESTINATION bin)
 
@@ -144,7 +144,7 @@ target_link_libraries(radosgw-object-expirer rgw_a librados
   cls_rgw_client cls_lock_client cls_refcount_client
   cls_log_client cls_statelog_client cls_timeindex_client
   cls_version_client cls_replica_log_client cls_user_client
-  global fcgi resolv
+  global fcgi ${LIB_RESOLV}
   ${CURL_LIBRARIES} ${EXPAT_LIBRARIES})
 install(TARGETS radosgw-object-expirer DESTINATION bin)
 
@@ -165,7 +165,7 @@ target_link_libraries(rgw LINK_PRIVATE
   cls_replica_log_client
   cls_user_client
   global
-  resolv
+  ${LIB_RESOLV}
   ${CURL_LIBRARIES}
   ${EXPAT_LIBRARIES})
 set_target_properties(rgw PROPERTIES OUTPUT_NAME rgw VERSION 2.0.0