You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2026/10/15 21:52:49 UTC

(kudu) branch master updated: [test] fix duplicate library warning on libkudu_test_main.a

This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new f6d76f251 [test] fix duplicate library warning on libkudu_test_main.a
f6d76f251 is described below

commit f6d76f25173ea83e5014cda6b97a0d6917887a37
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Wed Oct 14 13:16:25 2026 -0700

    [test] fix duplicate library warning on libkudu_test_main.a
    
    Before this update, mold or contemporary LLVM linker would warn about
    a duplicate libkudu_test_main static library while building the project:
    
      ld: warning: ignoring duplicate libraries: '../../../lib/libkudu_test_main.a'
    
    The duplication came from the dependency list of tserver_test_util,
    so every test binary that was dependent/linking in the server_test_util
    library would contain duplicate entries for the kudu_test_main library
    dependency, and it resulted in linker command line with the same library
    listed twice.
    
    This changelist doesn't contain any functional modifications.
    
    Change-Id: I6e3e24b5a5bfe19d40bafaaa4de5f55aec251b82
    Reviewed-on: http://gerrit.cloudera.org:8080/25121
    Tested-by: Alexey Serbin <al...@apache.org>
    Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
---
 src/kudu/tserver/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kudu/tserver/CMakeLists.txt b/src/kudu/tserver/CMakeLists.txt
index 064c39d1a..838d9b0d7 100644
--- a/src/kudu/tserver/CMakeLists.txt
+++ b/src/kudu/tserver/CMakeLists.txt
@@ -173,7 +173,8 @@ if (NOT NO_TESTS)
 
   add_library(tserver_test_util ${TSERVER_TEST_UTIL_SRCS})
   target_link_libraries(tserver_test_util
-    ${KUDU_MIN_TEST_LIBS}
+    ${KUDU_BASE_LIBS}
+    kudu_test_util
     tserver)
 endif()