]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw-ldap: add ldap lib to rgw lib deps based on build config 9852/head
authorJohn Coyle <dx9err@gmail.com>
Mon, 21 Mar 2016 14:03:56 +0000 (10:03 -0400)
committerJohn Coyle <dx9err@gmail.com>
Wed, 29 Jun 2016 20:34:43 +0000 (16:34 -0400)
Fixes autotools and Cmake linking on Alpine.

Signed-off-by: John Coyle <dx9err@gmail.com>
src/CMakeLists.txt
src/rgw/Makefile.am

index 48cdf981fb5b2e560e520ff0117e3edb8b0ae42d..31aaf1a084bee7efc8cae394237993189bebeb02 100644 (file)
@@ -1428,7 +1428,7 @@ if(${WITH_RADOSGW})
   add_library(rgw_a STATIC ${rgw_a_srcs})
   target_link_libraries(rgw_a librados cls_rgw_client cls_refcount_client
     cls_log_client cls_statelog_client cls_timeindex_client cls_version_client
-    cls_replica_log_client cls_user_client curl global expat)
+    cls_replica_log_client cls_user_client curl global expat ${OPENLDAP_LIBS})
 
   set(radosgw_srcs
     rgw/rgw_fcgi_process.cc
@@ -1483,7 +1483,7 @@ if(${WITH_RADOSGW})
     cls_log_client cls_statelog_client cls_timeindex_client
     cls_version_client cls_replica_log_client cls_user_client
     curl expat global fcgi resolv ${SSL_LIBRARIES} ${BLKID_LIBRARIES}
-    ${OPENLDAP_LIBS} ${ALLOC_LIBS})
+    ${ALLOC_LIBS})
   # radosgw depends on cls libraries at runtime, but not as link dependencies
   add_dependencies(radosgw cls_rgw cls_lock cls_refcount
     cls_log cls_statelog cls_timeindex
index 59179c217711d8f41dd467feebc31fa0df1355d2..001d9ae6213062d91cbc2ac98a830d9acd5860ab 100644 (file)
@@ -121,7 +121,7 @@ LIBRGW_DEPS += \
         -ldl
 endif
 
-if FREEBSD
+if WITH_OPENLDAP
 LIBRGW_DEPS += \
       -lldap
 endif