aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/global_flags.linker.gnu.cmake
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-03-06 16:56:18 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2023-03-06 16:56:18 +0300
commitcbc0c479c131a1e63ca86fe98b031e1bcac725d8 (patch)
tree12245a82da1c7f54d54befcfb7706643e8166505 /cmake/global_flags.linker.gnu.cmake
parentea8e336dc456c44b848619e120a8f3643c6125af (diff)
downloadydb-cbc0c479c131a1e63ca86fe98b031e1bcac725d8.tar.gz
External build system generator release 17
Update tools: yexport
Diffstat (limited to 'cmake/global_flags.linker.gnu.cmake')
-rw-r--r--cmake/global_flags.linker.gnu.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/global_flags.linker.gnu.cmake b/cmake/global_flags.linker.gnu.cmake
new file mode 100644
index 0000000000..2bb54fbd78
--- /dev/null
+++ b/cmake/global_flags.linker.gnu.cmake
@@ -0,0 +1,9 @@
+add_link_options(
+ -nodefaultlibs
+ -lc
+ -lm
+)
+
+if (APPLE)
+ set(CMAKE_SHARED_LINKER_FLAGS "-undefined dynamic_lookup")
+endif()