155c06
--- ceph-17.1.0/src/rgw/store/dbstore/sqlite/CMakeLists.txt.orig	2022-03-01 08:19:04.974902872 -0500
155c06
+++ ceph-17.1.0/src/rgw/store/dbstore/sqlite/CMakeLists.txt	2022-03-11 07:55:16.236261471 -0500
155c06
@@ -12,5 +12,5 @@
155c06
 set(SQLITE_COMPILE_FLAGS "-DSQLITE_THREADSAFE=1")
155c06
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SQLITE_COMPILE_FLAGS}")
155c06
 
155c06
-add_library(sqlite_db ${sqlite_db_srcs})
155c06
+add_library(sqlite_db STATIC ${sqlite_db_srcs})
155c06
 target_link_libraries(sqlite_db sqlite3 dbstore_lib rgw_common)
155c06
--- ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt.orig	2022-02-28 14:11:49.987077811 -0500
155c06
+++ ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt	2022-03-11 08:40:13.409682698 -0500
155c06
@@ -16,7 +16,7 @@
155c06
     dbstore_mgr.cc
155c06
     )
155c06
 
155c06
-add_library(dbstore_lib ${dbstore_srcs})
155c06
+add_library(dbstore_lib STATIC ${dbstore_srcs})
155c06
 target_include_directories(dbstore_lib PUBLIC "${CMAKE_SOURCE_DIR}/src/fmt/include")
155c06
 target_include_directories(dbstore_lib PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw")
155c06
 set(link_targets spawn)
155c06
@@ -38,6 +38,7 @@
155c06
 
155c06
 # add pthread library
155c06
 set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} pthread)
155c06
+set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} global)
155c06
 
155c06
 find_package(gtest QUIET)
155c06
 if(WITH_TESTS)
155c06
@@ -47,7 +48,7 @@
5104bd
 endif()
5104bd
 
c3d6a9
 include_directories(${CMAKE_INCLUDE_DIR})
c3d6a9
-add_library(dbstore ${dbstore_mgr_srcs})
c3d6a9
+add_library(dbstore STATIC ${dbstore_mgr_srcs})
c3d6a9
 target_link_libraries(dbstore ${CMAKE_LINK_LIBRARIES})
c3d6a9
 
c3d6a9
 # testing purpose