Skip to content

Commit

Permalink
Fix for ASAN/TSAN build
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Nov 8, 2018
1 parent f1ef0d1 commit f522488
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ ENDIF()

IF(UNIX)
SEARCH_LIBRARY(LIBDL dlopen "dl")
IF(NOT ${LIBDL})
SEARCH_LIBRARY(LIBDL dlsym "dl")
ENDIF()
SEARCH_LIBRARY(LIBM floor m)
SEARCH_LIBRARY(LIBPTHREAD pthread_getspecific "pthread;pthreads")
SEARCH_LIBRARY(LIBNSL gethostbyname_r "nsl_r;nsl")
Expand Down
2 changes: 1 addition & 1 deletion libmariadb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8 AND MSVC)
ENDIF()

IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
IF (NOT WITH_ASAN)
IF (NOT WITH_ASAN AND NOT WITH_TSAN)
TARGET_LINK_LIBRARIES (libmariadb "-Wl,--no-undefined")
ENDIF()
SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINK_FLAGS "${CC_BINARY_DIR}/libmariadb/mariadbclient.def")
Expand Down

0 comments on commit f522488

Please sign in to comment.