diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-01-22 15:29:36 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-01-22 15:29:36 +0100 |
commit | 37d240ecf9213a29d6a0a236ebeb1e72c0b43ce6 (patch) | |
tree | 6bd2508d867303d8830aab0f246cd61a7ec5a835 /configure.cmake | |
parent | e8f6f402922295ec36aab42976f3e494455407d4 (diff) | |
parent | 5caddbfd5b4a7ec377f3d40a5830436e0e6e993b (diff) | |
download | mariadb-git-37d240ecf9213a29d6a0a236ebeb1e72c0b43ce6.tar.gz |
MySQL-5.5.35 merge
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 9476b876b4c..0bd7bbe38a1 100644 --- a/configure.cmake +++ b/configure.cmake @@ -147,6 +147,10 @@ IF(UNIX) SET(CMAKE_REQUIRED_LIBRARIES ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT} ${LIBEXECINFO}) + # Need explicit pthread for gcc -fsanitize=address + IF(CMAKE_USE_PTHREADS_INIT AND CMAKE_C_FLAGS MATCHES "-fsanitize=") + SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} pthread) + ENDIF() IF(CMAKE_REQUIRED_LIBRARIES) LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES) |