From: Willem Jan Withagen Date: Sat, 3 Sep 2016 13:58:20 +0000 (+0200) Subject: CmakeLists.txt: use LIB_RESOLV instead of resolv. X-Git-Tag: v11.0.1~315^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10972%2Fhead;p=ceph.git CmakeLists.txt: use LIB_RESOLV instead of resolv. - FreeBSD does not have a separate libresolv, but keeps it in libc Signed-off-by: Willem Jan Withagen --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9afe2b3ef91e..9e68e8f8b457 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -458,7 +458,7 @@ endif(ENABLE_SHARED) add_library(common STATIC ${libcommon_files} $ $) -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}) diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index 1c48444afb42..9014eba81a1a 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -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