summaryrefslogtreecommitdiff
path: root/cmake/os
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-01-29 14:45:51 +0300
committerSergey Vojtovich <svoj@mariadb.org>2019-03-11 13:37:19 +0400
commit2a2ab121b0f65cdc4b104ec763d23f1b7035a644 (patch)
treea0acf13574efb72a4a7dd9f7376a02dc856daff8 /cmake/os
parent04150218408741aa4599d90aefadb4cb6f15029c (diff)
downloadmariadb-git-2a2ab121b0f65cdc4b104ec763d23f1b7035a644.tar.gz
MDEV-17703 Add WITH_UBSAN switch to CMake similar to WITH_ASAN
This can be useful: UBSAN_OPTIONS=log_path=/some/path clang users may want to increase stack size in include/my_pthread.h or enable some optimizations
Diffstat (limited to 'cmake/os')
-rw-r--r--cmake/os/Linux.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/os/Linux.cmake b/cmake/os/Linux.cmake
index b0680d92a1b..55be8674802 100644
--- a/cmake/os/Linux.cmake
+++ b/cmake/os/Linux.cmake
@@ -35,7 +35,7 @@ ENDFOREACH()
# Ensure we have clean build for shared libraries
# without unresolved symbols
# Not supported with AddressSanitizer
-IF(NOT WITH_ASAN)
+IF(NOT WITH_ASAN AND NOT WITH_UBSAN)
SET(LINK_FLAG_NO_UNDEFINED "-Wl,--no-undefined")
ENDIF()