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