aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-04-18 06:36:21 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-04-18 06:36:21 +0300
commit529b98840910b106b8a3101c4eedefcf992916b2 (patch)
treeb5698648ffb7ab16a683c42e68ea9fabd997031d
parent2ec6f56358c1cc23520aa2029b575b63e21536ed (diff)
downloadydb-529b98840910b106b8a3101c4eedefcf992916b2.tar.gz
External build system generator release 28
Update tools: yexport
-rw-r--r--cmake/global_flags.linker.gnu.cmake10
1 files changed, 3 insertions, 7 deletions
diff --git a/cmake/global_flags.linker.gnu.cmake b/cmake/global_flags.linker.gnu.cmake
index c527053100..5b32a8868f 100644
--- a/cmake/global_flags.linker.gnu.cmake
+++ b/cmake/global_flags.linker.gnu.cmake
@@ -1,8 +1,3 @@
-add_link_options(
- -lc
- -lm
-)
-
if (ANDROID)
# NDK r23 onwards has stopped using libgcc:
# - https://github.com/android/ndk/wiki/Changelog-r23#changes
@@ -15,9 +10,10 @@ if (ANDROID)
add_link_options("-nostdlib++")
else ()
# Preserve old behaviour: specify runtime libs manually
- add_link_options(-nodefaultlibs -lgcc)
+ add_link_options(-nodefaultlibs)
+ link_libraries(gcc)
if (CMAKE_ANDROID_ARCH_ABI STREQUAL "armeabi-v7a")
- add_link_options("-lunwind")
+ link_libraries(unwind)
endif()
endif()
elseif (CMAKE_SYSTEM_NAME MATCHES "^(Darwin|Linux)$")