for example, json_spirit uses common_utf8, so link json_spirit against common_utf8.
because libcommon includes json_spirit, this change does not impact the
consumers of libcommon.
Signed-off-by: Kefu Chai <kchai@redhat.com>
add_library(common_utf8 STATIC common/utf8.c)
-target_link_libraries(common json_spirit common_utf8 erasure_code rt uuid resolv ${CRYPTO_LIBS} ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES})
+target_link_libraries(common json_spirit erasure_code rt uuid resolv ${CRYPTO_LIBS} ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES})
if(${WITH_LTTNG})
add_subdirectory(tracing)
add_library(json_spirit STATIC
json_spirit_reader.cpp
json_spirit_writer.cpp)
-target_link_libraries(json_spirit ${Boost_LIBRARIES})
+target_link_libraries(json_spirit ${Boost_LIBRARIES} common_utf8)
target_include_directories(rgw_a PUBLIC ${FCGI_INCLUDE_DIR})
target_link_libraries(rgw_a librados cls_rgw_client cls_refcount_client
cls_log_client cls_statelog_client cls_timeindex_client cls_version_client
- cls_replica_log_client cls_user_client curl global expat ${OPENLDAP_LIBRARIES}
- ${CRYPTO_LIBS})
+ cls_replica_log_client cls_user_client common common_utf8 curl global expat
+ ${OPENLDAP_LIBRARIES} ${CRYPTO_LIBS})
set(radosgw_srcs
rgw_fcgi_process.cc