[Tarantool-patches] [PATCH v2 1/2] cmake: remove double usage of some source files
Timur Safin
tsafin at tarantool.org
Sat Apr 18 12:22:53 MSK 2020
LGTM As trivial fix, but there is one question though...
: -----Original Message-----
: From: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
: Sent: Saturday, April 18, 2020 2:49 AM
: To: tarantool-patches at dev.tarantool.org; tsafin at tarantool.org
: Subject: [PATCH v2 1/2] cmake: remove double usage of some source files
:
: src/cpu_feature.c, src/box/error.cc and src/box/vclock.c were used
: twice. As a result it could lead to duplicate symbols.
: ---
: src/CMakeLists.txt | 7 ++++---
: src/box/CMakeLists.txt | 7 +++----
: src/lib/small | 2 +-
: 3 files changed, 8 insertions(+), 8 deletions(-)
:
: diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
: index de9680bcc..6c756f00f 100644
: --- a/src/CMakeLists.txt
: +++ b/src/CMakeLists.txt
: @@ -82,11 +82,13 @@ target_link_libraries(stat core)
: add_library(scramble STATIC scramble.c)
: target_link_libraries(scramble core misc)
:
: +add_library(cpu_feature STATIC cpu_feature.c)
: +
: add_library(crc32 STATIC
: crc32.c
: - cpu_feature.c
: ${PROJECT_SOURCE_DIR}/third_party/crc32.c
: )
: +target_link_libraries(crc32 cpu_feature)
:
: set (server_sources
: find_path.c
: @@ -94,7 +96,6 @@ set (server_sources
: httpc.c
: pickle.c
: cfg.c
: - cpu_feature.c
: title.c
: proc_title.c
: path_lock.c
: @@ -170,7 +171,7 @@ set_source_files_compile_flags(${server_sources})
: add_library(server STATIC ${server_sources})
: add_dependencies(server build_bundled_libs)
: target_link_libraries(server core coll http_parser bit uri uuid swim
: swim_udp
: - swim_ev crypto mpstream)
: + swim_ev crypto mpstream crc32)
:
: # Rule of thumb: if exporting a symbol from a static library, list the
: # library here.
: diff --git a/src/box/CMakeLists.txt b/src/box/CMakeLists.txt
: index 5ed7eaead..a232939ab 100644
: --- a/src/box/CMakeLists.txt
: +++ b/src/box/CMakeLists.txt
: @@ -34,12 +34,12 @@ set_property(DIRECTORY PROPERTY
: ADDITIONAL_MAKE_CLEAN_FILES ${lua_sources})
: include_directories(${ZSTD_INCLUDE_DIRS})
: include_directories(${CMAKE_BINARY_DIR}/src/box/sql)
:
: -add_library(box_error STATIC error.cc errcode.c vclock.c)
: -target_link_libraries(box_error core stat)
: -
: add_library(vclock STATIC vclock.c)
: target_link_libraries(vclock core)
:
: +add_library(box_error STATIC error.cc errcode.c)
: +target_link_libraries(box_error core stat vclock)
: +
: add_library(xrow STATIC xrow.c iproto_constants.c)
: target_link_libraries(xrow server core small vclock misc box_error
: scramble mpstream ${MSGPUCK_LIBRARIES})
: @@ -73,7 +73,6 @@ target_link_libraries(xlog core box_error crc32
: ${ZSTD_LIBRARIES})
:
: add_library(box STATIC
: iproto.cc
: - error.cc
: xrow_io.cc
: tuple_convert.c
: identifier.c
: diff --git a/src/lib/small b/src/lib/small
: index 3df505017..cebc40574 160000
: --- a/src/lib/small
: +++ b/src/lib/small
: @@ -1 +1 @@
: -Subproject commit 3df5050171d040bfe5717b4bddf57da3b312ffe4
: +Subproject commit cebc40574cb68a21dac16c438371392db8f98f66
Have you intentionally moved small submodule? Is it necessary for this case?
Thanks,
Timur
More information about the Tarantool-patches
mailing list