Blob Blame History Raw
--- ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt.orig	2022-02-28 14:11:49.987077811 -0500
+++ ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt	2022-02-28 14:12:19.576542037 -0500
@@ -38,6 +38,7 @@
 
 # add pthread library
 set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} pthread)
+set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} global)
 
 find_package(gtest QUIET)
 if(WITH_TESTS)
--- ceph-17.1.0/src/rgw/CMakeLists.txt.orig	2022-02-28 16:21:08.430487482 -0500
+++ ceph-17.1.0/src/rgw/CMakeLists.txt	2022-02-28 16:25:01.893245213 -0500
@@ -254,10 +254,6 @@
   target_link_libraries(rgw_common PUBLIC ${jaeger_base})
 endif()
 
-if(WITH_RADOSGW_DBSTORE)
-  target_link_libraries(rgw_common PRIVATE global dbstore)
-endif()
-
 set(rgw_a_srcs
   rgw_auth_keystone.cc
   rgw_client_io.cc
@@ -308,8 +304,13 @@
   find_package(RDKafka 0.9.2 REQUIRED)
 endif()
 
+if(WITH_RADOSGW_DBSTORE)
+set (DBSTORE_LIB dbstore)
+endif()
+
 target_link_libraries(rgw_a
   PRIVATE
+    ${DBSTORE_LIB}
     common_utf8 global
     ${CRYPTO_LIBS}
     ${LUA_LIBRARIES}