aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.com>2024-07-25 06:13:06 +0300
committerakhropov <akhropov@yandex-team.com>2024-07-25 06:22:31 +0300
commitaa8283abc1e82123f986f8be860ac27fb5e18f15 (patch)
treeeb183dff6ad0aab9ecdba0ce79f85596b5caa3a6
parent81c8d5e42918da4bd9dbdd7b45a8b2471c8d9c84 (diff)
downloadydb-aa8283abc1e82123f986f8be860ac27fb5e18f15.tar.gz
Add '-rdynamic' to link options on Android and Linux to enable symbols in backtraces.
17818639645d6b8106c4a569bc611c7fab654b68
-rw-r--r--build/export_generators/cmake/cmake/global_flags.linker.gnu.cmake4
-rw-r--r--build/export_generators/hardcoded-cmake/cmake/global_flags.linker.gnu.cmake4
2 files changed, 8 insertions, 0 deletions
diff --git a/build/export_generators/cmake/cmake/global_flags.linker.gnu.cmake b/build/export_generators/cmake/cmake/global_flags.linker.gnu.cmake
index 5b32a8868f..37e40ce45b 100644
--- a/build/export_generators/cmake/cmake/global_flags.linker.gnu.cmake
+++ b/build/export_generators/cmake/cmake/global_flags.linker.gnu.cmake
@@ -23,3 +23,7 @@ endif()
if (APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
endif()
+
+if (CMAKE_SYSTEM_NAME MATCHES "^(Android|Linux)$")
+ add_link_options(-rdynamic)
+endif()
diff --git a/build/export_generators/hardcoded-cmake/cmake/global_flags.linker.gnu.cmake b/build/export_generators/hardcoded-cmake/cmake/global_flags.linker.gnu.cmake
index 5b32a8868f..37e40ce45b 100644
--- a/build/export_generators/hardcoded-cmake/cmake/global_flags.linker.gnu.cmake
+++ b/build/export_generators/hardcoded-cmake/cmake/global_flags.linker.gnu.cmake
@@ -23,3 +23,7 @@ endif()
if (APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
endif()
+
+if (CMAKE_SYSTEM_NAME MATCHES "^(Android|Linux)$")
+ add_link_options(-rdynamic)
+endif()