1 https://src.fedoraproject.org/rpms/ceph/raw/rawhide/f/0018-src-rgw-store-dbstore-CMakeLists.txt.patch
2 --- ceph-17.1.0/src/rgw/store/dbstore/sqlite/CMakeLists.txt.orig 2022-03-01 08:19:04.974902872 -0500
3 +++ ceph-17.1.0/src/rgw/store/dbstore/sqlite/CMakeLists.txt 2022-03-11 07:55:16.236261471 -0500
5 set(SQLITE_COMPILE_FLAGS "-DSQLITE_THREADSAFE=1")
6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SQLITE_COMPILE_FLAGS}")
8 -add_library(sqlite_db ${sqlite_db_srcs})
9 +add_library(sqlite_db STATIC ${sqlite_db_srcs})
10 target_link_libraries(sqlite_db sqlite3 dbstore_lib rgw_common)
11 --- ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt.orig 2022-02-28 14:11:49.987077811 -0500
12 +++ ceph-17.1.0/src/rgw/store/dbstore/CMakeLists.txt 2022-03-11 08:40:13.409682698 -0500
17 -add_library(dbstore_lib ${dbstore_srcs})
18 +add_library(dbstore_lib STATIC ${dbstore_srcs})
19 target_include_directories(dbstore_lib PUBLIC "${CMAKE_SOURCE_DIR}/src/fmt/include")
20 target_include_directories(dbstore_lib PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw")
21 set(link_targets spawn)
25 set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} pthread)
26 +set (CMAKE_LINK_LIBRARIES ${CMAKE_LINK_LIBRARIES} global)
28 find_package(gtest QUIET)
33 include_directories(${CMAKE_INCLUDE_DIR})
34 -add_library(dbstore ${dbstore_mgr_srcs})
35 +add_library(dbstore STATIC ${dbstore_mgr_srcs})
36 target_link_libraries(dbstore ${CMAKE_LINK_LIBRARIES})