From 9743baab22c7d94f936b20be48f186d81e9f3cf1 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 2 Sep 2022 20:37:26 +0800 Subject: [PATCH] cmake: link denc-mod-rgw against Boost::filesystem to address the runtime link failure. this change is not cherry-picked from main branch. as, in main branch, the Boost::filesystem linkage is pulled in by rgw_common, which was changed to a static library in 43d10b9e44ca50700e9076a47f2c38b360d1d632. but this change is not included in pacific. so rgw added the linkage via rgw_libs CMake variable. unfortunately, the lexical scope of this variable does not not include tools/ceph-dencoder/CMakeLists.txt, so we have to add this linkage manually here. Signed-off-by: Tim Serong Signed-off-by: Kefu Chai --- src/tools/ceph-dencoder/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/ceph-dencoder/CMakeLists.txt b/src/tools/ceph-dencoder/CMakeLists.txt index 13529242dd76..a92ac5e69973 100644 --- a/src/tools/ceph-dencoder/CMakeLists.txt +++ b/src/tools/ceph-dencoder/CMakeLists.txt @@ -65,6 +65,10 @@ if(WITH_RADOSGW) target_link_libraries(denc-mod-rgw rdkafka) endif() + if(WITH_RADOSGW_LUA_PACKAGES) + target_link_libraries(denc-mod-rgw + Boost::filesystem) + endif() endif() if(WITH_RBD) -- 2.47.3