diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 21:42:41 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-18 21:42:41 +0300 |
commit | 5291e2f6c447d149f3dc17006419bc7411478148 (patch) | |
tree | 2925d1a7aa1a894f7514fb2181414837e3990799 | |
parent | 68155b41eaf4cc306f8286e7ce8da6f6af7d93f5 (diff) | |
download | ydb-5291e2f6c447d149f3dc17006419bc7411478148.tar.gz |
intermediate changes
ref:4ec759a52592995211dfd2877771c14eb231e31b
41 files changed, 338 insertions, 6 deletions
diff --git a/build/ya.conf.json b/build/ya.conf.json index 65bd38bc60..4f290896a9 100644 --- a/build/ya.conf.json +++ b/build/ya.conf.json @@ -7340,8 +7340,8 @@ "renderer": { "formula": { "sandbox_id": [ - 1085349224, - 1088353208 + 1217317559, + 1219860570 ], "match": "" }, diff --git a/build/ymake.core.conf b/build/ymake.core.conf index fdbbedd79e..b90bc11085 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -1677,7 +1677,7 @@ module _BASE_PROGRAM: _LINK_UNIT { CPP_PROGRAM_SEM=add_executable $MODDIR $REALPRJNAME ${hide:TARGET} ${hide:AUTO_INPUT} \ && vcs_info \ - && target_link_flags PUBLIC $OBJADDE_LIB $OBJADDE \ + && target_link_flags PUBLIC $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE_LIB $OBJADDE \ && target_include_directories PRIVATE $_C__INCLUDE_OWNED \ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS ### @usage: PROGRAM([progname]) diff --git a/build/ymake_conf.py b/build/ymake_conf.py index e65bf273b8..5e52da458b 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -1765,7 +1765,7 @@ class Linker(object): self.type = self._get_default_linker_type() def _get_default_linker_type(self): - if not self.tc.is_from_arcadia: + if not self.tc.is_from_arcadia or is_positive('EXPORT_CMAKE'): # External (e.g. system) toolchain: disable linker selection logic return None diff --git a/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc b/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc index b3f3febe63..5a3c3cf5a3 100644 --- a/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc +++ b/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc @@ -38,6 +38,7 @@ #include <unistd.h> #include <util/generic/string.h> +#include <util/system/yassert.h> #include "y_absl/strings/str_cat.h" #include "y_absl/strings/str_format.h" @@ -210,6 +211,9 @@ static void on_read(void* arg, grpc_error* err) { case EAGAIN: grpc_fd_notify_on_read(sp->emfd, &sp->read_closure); return; + case EMFILE: + case ENFILE: + Y_FAIL("grpc failed accept4: %s", strerror(errno)); default: gpr_mu_lock(&sp->server->mu); if (!sp->server->shutdown_listeners) { diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt index e15ce1d506..04005c42af 100644 --- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt +++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt @@ -66,6 +66,14 @@ target_sources(llvm-tblgen PRIVATE ) target_link_flags(llvm-tblgen PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/contrib/tools/protoc/bin/CMakeLists.txt b/contrib/tools/protoc/bin/CMakeLists.txt index fce0c3e05b..45a7af900d 100644 --- a/contrib/tools/protoc/bin/CMakeLists.txt +++ b/contrib/tools/protoc/bin/CMakeLists.txt @@ -10,6 +10,14 @@ target_sources(protoc PRIVATE ) target_link_flags(protoc PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt index 6cd1298c22..d75d00ca43 100644 --- a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt @@ -10,6 +10,14 @@ target_sources(cpp_styleguide PRIVATE ) target_link_flags(cpp_styleguide PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt index 5fdb257c23..ea9e6a8069 100644 --- a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt +++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt @@ -17,6 +17,14 @@ target_sources(grpc_cpp PRIVATE ) target_link_flags(grpc_cpp PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt index 24f2dc82de..6b272b1df3 100644 --- a/library/cpp/digest/old_crc/gencrc/CMakeLists.txt +++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.txt @@ -9,6 +9,14 @@ target_sources(gencrc PRIVATE ) target_link_flags(gencrc PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp index bac72d07fc..a7a4749d99 100644 --- a/library/cpp/string_utils/quote/quote.cpp +++ b/library/cpp/string_utils/quote/quote.cpp @@ -4,8 +4,6 @@ #include <util/string/ascii.h> #include <util/string/cstriter.h> -#include <cctype> - /* note: (x & 0xdf) makes x upper case */ #define GETXC \ do { \ diff --git a/tools/enum_parser/enum_parser/bin/CMakeLists.txt b/tools/enum_parser/enum_parser/bin/CMakeLists.txt index f3b4d414c3..4d8c5a00b5 100644 --- a/tools/enum_parser/enum_parser/bin/CMakeLists.txt +++ b/tools/enum_parser/enum_parser/bin/CMakeLists.txt @@ -11,6 +11,14 @@ target_sources(enum_parser PRIVATE ) target_link_flags(enum_parser PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/tools/rescompiler/bin/CMakeLists.txt b/tools/rescompiler/bin/CMakeLists.txt index 6861bd59f6..657cf9d403 100644 --- a/tools/rescompiler/bin/CMakeLists.txt +++ b/tools/rescompiler/bin/CMakeLists.txt @@ -10,6 +10,14 @@ target_sources(rescompiler PRIVATE ) target_link_flags(rescompiler PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/apps/ydb/CMakeLists.txt b/ydb/apps/ydb/CMakeLists.txt index d5b1414491..8ecc6b15a2 100644 --- a/ydb/apps/ydb/CMakeLists.txt +++ b/ydb/apps/ydb/CMakeLists.txt @@ -10,6 +10,16 @@ target_sources(ydb PRIVATE ) target_link_flags(ydb PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/apps/ydbd/CMakeLists.txt b/ydb/apps/ydbd/CMakeLists.txt index fe52a053fb..3f0c1e9ede 100644 --- a/ydb/apps/ydbd/CMakeLists.txt +++ b/ydb/apps/ydbd/CMakeLists.txt @@ -48,6 +48,16 @@ target_sources(ydbd PRIVATE ) target_link_flags(ydbd PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/blobstorage/vdisk/hulldb/ut/CMakeLists.txt b/ydb/core/blobstorage/vdisk/hulldb/ut/CMakeLists.txt index 65a5c758b2..962811ca98 100644 --- a/ydb/core/blobstorage/vdisk/hulldb/ut/CMakeLists.txt +++ b/ydb/core/blobstorage/vdisk/hulldb/ut/CMakeLists.txt @@ -25,6 +25,16 @@ add_test( ) target_link_flags(ydb-core-blobstorage-vdisk-hulldb-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/grpc_services/ut/CMakeLists.txt b/ydb/core/grpc_services/ut/CMakeLists.txt index adbfc3b053..759039f336 100644 --- a/ydb/core/grpc_services/ut/CMakeLists.txt +++ b/ydb/core/grpc_services/ut/CMakeLists.txt @@ -26,6 +26,16 @@ add_test( ) target_link_flags(ydb-core-grpc_services-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/grpc_services/validation/CMakeLists.txt b/ydb/core/grpc_services/validation/CMakeLists.txt index d15c7c8b3c..11a8174211 100644 --- a/ydb/core/grpc_services/validation/CMakeLists.txt +++ b/ydb/core/grpc_services/validation/CMakeLists.txt @@ -12,6 +12,14 @@ target_sources(validation PRIVATE ) target_link_flags(validation PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/grpc_services/validation/ut/CMakeLists.txt b/ydb/core/grpc_services/validation/ut/CMakeLists.txt index 635a3020c4..e96e5031a5 100644 --- a/ydb/core/grpc_services/validation/ut/CMakeLists.txt +++ b/ydb/core/grpc_services/validation/ut/CMakeLists.txt @@ -21,6 +21,14 @@ add_test( ) target_link_flags(ydb-core-grpc_services-validation-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/kesus/tablet/quoter_performance_test/CMakeLists.txt b/ydb/core/kesus/tablet/quoter_performance_test/CMakeLists.txt index 30337568c6..50206eaf71 100644 --- a/ydb/core/kesus/tablet/quoter_performance_test/CMakeLists.txt +++ b/ydb/core/kesus/tablet/quoter_performance_test/CMakeLists.txt @@ -20,6 +20,16 @@ target_sources(quoter_performance_test PRIVATE ) target_link_flags(quoter_performance_test PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/quoter/quoter_service_bandwidth_test/CMakeLists.txt b/ydb/core/quoter/quoter_service_bandwidth_test/CMakeLists.txt index 2875e12db6..0d96feb17a 100644 --- a/ydb/core/quoter/quoter_service_bandwidth_test/CMakeLists.txt +++ b/ydb/core/quoter/quoter_service_bandwidth_test/CMakeLists.txt @@ -20,6 +20,16 @@ target_sources(quoter_service_bandwidth_test PRIVATE ) target_link_flags(quoter_service_bandwidth_test PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/tx/long_tx_service/public/ut/CMakeLists.txt b/ydb/core/tx/long_tx_service/public/ut/CMakeLists.txt index a46b868498..9878393351 100644 --- a/ydb/core/tx/long_tx_service/public/ut/CMakeLists.txt +++ b/ydb/core/tx/long_tx_service/public/ut/CMakeLists.txt @@ -24,6 +24,16 @@ add_test( ) target_link_flags(ydb-core-tx-long_tx_service-public-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/tx/long_tx_service/ut/CMakeLists.txt b/ydb/core/tx/long_tx_service/ut/CMakeLists.txt index 7f2dae8050..77d876c62f 100644 --- a/ydb/core/tx/long_tx_service/ut/CMakeLists.txt +++ b/ydb/core/tx/long_tx_service/ut/CMakeLists.txt @@ -24,6 +24,16 @@ add_test( ) target_link_flags(ydb-core-tx-long_tx_service-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/tx/sequenceproxy/ut/CMakeLists.txt b/ydb/core/tx/sequenceproxy/ut/CMakeLists.txt index 60cd54e80d..d36b94802f 100644 --- a/ydb/core/tx/sequenceproxy/ut/CMakeLists.txt +++ b/ydb/core/tx/sequenceproxy/ut/CMakeLists.txt @@ -24,6 +24,16 @@ add_test( ) target_link_flags(ydb-core-tx-sequenceproxy-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/core/ymq/client/bin/CMakeLists.txt b/ydb/core/ymq/client/bin/CMakeLists.txt index ef509a7a21..e56589d210 100644 --- a/ydb/core/ymq/client/bin/CMakeLists.txt +++ b/ydb/core/ymq/client/bin/CMakeLists.txt @@ -12,6 +12,14 @@ target_sources(sqs PRIVATE ) target_link_flags(sqs PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/library/schlab/mon/test/CMakeLists.txt b/ydb/library/schlab/mon/test/CMakeLists.txt index 578c503844..36742b0ef7 100644 --- a/ydb/library/schlab/mon/test/CMakeLists.txt +++ b/ydb/library/schlab/mon/test/CMakeLists.txt @@ -21,6 +21,16 @@ resources(mon-test ) target_link_flags(mon-test PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/draft/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/draft/ut/CMakeLists.txt index 50e705e75a..08b0cbb01c 100644 --- a/ydb/public/sdk/cpp/client/draft/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/draft/ut/CMakeLists.txt @@ -20,6 +20,16 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-draft-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/impl/ydb_endpoints/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/impl/ydb_endpoints/ut/CMakeLists.txt index 55122b7bc8..9d032af338 100644 --- a/ydb/public/sdk/cpp/client/impl/ydb_endpoints/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/impl/ydb_endpoints/ut/CMakeLists.txt @@ -20,6 +20,14 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-impl-ydb_endpoints-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_coordination/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_coordination/ut/CMakeLists.txt index 9747fd2668..2c057cacb1 100644 --- a/ydb/public/sdk/cpp/client/ydb_coordination/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_coordination/ut/CMakeLists.txt @@ -21,6 +21,14 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_coordination-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_driver/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_driver/ut/CMakeLists.txt index d6cd5b543e..e1c387e635 100644 --- a/ydb/public/sdk/cpp/client/ydb_driver/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_driver/ut/CMakeLists.txt @@ -21,6 +21,16 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_driver-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_params/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_params/ut/CMakeLists.txt index 7fa92f74a8..d79ea00ef5 100644 --- a/ydb/public/sdk/cpp/client/ydb_params/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_params/ut/CMakeLists.txt @@ -21,6 +21,14 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_params-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/CMakeLists.txt index 42b7696f1f..c9c26182a1 100644 --- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/CMakeLists.txt @@ -37,6 +37,16 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_persqueue_core-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/with_offset_ranges_mode_ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/with_offset_ranges_mode_ut/CMakeLists.txt index edfebf1044..544f992fe7 100644 --- a/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/with_offset_ranges_mode_ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_persqueue_core/ut/with_offset_ranges_mode_ut/CMakeLists.txt @@ -29,6 +29,16 @@ add_test( ) target_link_flags(with_offset_ranges_mode_ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_result/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_result/ut/CMakeLists.txt index 8494c878c9..b12295e999 100644 --- a/ydb/public/sdk/cpp/client/ydb_result/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_result/ut/CMakeLists.txt @@ -20,6 +20,14 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_result-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_table/impl/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_table/impl/ut/CMakeLists.txt index db4ce39277..ab707c3f6a 100644 --- a/ydb/public/sdk/cpp/client/ydb_table/impl/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_table/impl/ut/CMakeLists.txt @@ -21,6 +21,16 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_table-impl-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/client/ydb_value/ut/CMakeLists.txt b/ydb/public/sdk/cpp/client/ydb_value/ut/CMakeLists.txt index 961b039e6b..2220d02c65 100644 --- a/ydb/public/sdk/cpp/client/ydb_value/ut/CMakeLists.txt +++ b/ydb/public/sdk/cpp/client/ydb_value/ut/CMakeLists.txt @@ -22,6 +22,14 @@ add_test( ) target_link_flags(ydb-public-sdk-cpp-client-ydb_value-ut PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -fPIC + -Wl,--gdb-index + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/basic_example/CMakeLists.txt b/ydb/public/sdk/cpp/examples/basic_example/CMakeLists.txt index 2b590e0d0e..661fb71696 100644 --- a/ydb/public/sdk/cpp/examples/basic_example/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/basic_example/CMakeLists.txt @@ -13,6 +13,16 @@ target_sources(basic_example PRIVATE ) target_link_flags(basic_example PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/bulk_upsert_simple/CMakeLists.txt b/ydb/public/sdk/cpp/examples/bulk_upsert_simple/CMakeLists.txt index fda0a9becf..4d093407ca 100644 --- a/ydb/public/sdk/cpp/examples/bulk_upsert_simple/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/bulk_upsert_simple/CMakeLists.txt @@ -11,6 +11,16 @@ target_sources(bulk_upsert_simple PRIVATE ) target_link_flags(bulk_upsert_simple PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/pagination/CMakeLists.txt b/ydb/public/sdk/cpp/examples/pagination/CMakeLists.txt index b6f54d3916..1c98eb0e49 100644 --- a/ydb/public/sdk/cpp/examples/pagination/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/pagination/CMakeLists.txt @@ -13,6 +13,16 @@ target_sources(pagination PRIVATE ) target_link_flags(pagination PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/secondary_index/CMakeLists.txt b/ydb/public/sdk/cpp/examples/secondary_index/CMakeLists.txt index fb9e049cec..d017690003 100644 --- a/ydb/public/sdk/cpp/examples/secondary_index/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/secondary_index/CMakeLists.txt @@ -18,6 +18,16 @@ target_sources(secondary_index PRIVATE ) target_link_flags(secondary_index PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/secondary_index_builtin/CMakeLists.txt b/ydb/public/sdk/cpp/examples/secondary_index_builtin/CMakeLists.txt index c9293bda3a..67a14f194b 100644 --- a/ydb/public/sdk/cpp/examples/secondary_index_builtin/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/secondary_index_builtin/CMakeLists.txt @@ -17,6 +17,16 @@ target_sources(secondary_index_builtin PRIVATE ) target_link_flags(secondary_index_builtin PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl diff --git a/ydb/public/sdk/cpp/examples/ttl/CMakeLists.txt b/ydb/public/sdk/cpp/examples/ttl/CMakeLists.txt index d39412419a..4200ee85be 100644 --- a/ydb/public/sdk/cpp/examples/ttl/CMakeLists.txt +++ b/ydb/public/sdk/cpp/examples/ttl/CMakeLists.txt @@ -12,6 +12,16 @@ target_sources(ttl PRIVATE ) target_link_flags(ttl PUBLIC + -ldl + -lrt + -Wl,--no-as-needed + -Wl,-rpath,$ORIGIN + -fPIC + -Wl,--gdb-index + -Wl,-rpath,$ORIGIN + -fPIC + -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld + -Wl,--no-rosegment -lpthread -lrt -ldl |