diff options
author | Vladislav Vaintroub <vv221804@loki07> | 2009-12-23 04:44:25 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vv221804@loki07> | 2009-12-23 04:44:25 +0100 |
commit | 9ba35b040b19828ee8ba44a9c4fa367ee4e2af08 (patch) | |
tree | 5cad11c4f7c5c82e47ee391a346a87e9b4aeba36 /configure.cmake | |
parent | d7df4abf4e9f6eddf38df48b76d8148402324675 (diff) | |
download | mariadb-git-9ba35b040b19828ee8ba44a9c4fa367ee4e2af08.tar.gz |
restore flaky loadxml test, fix solaris plugin load using -lpthread instead of -lthread
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index a0db5669471..353d70aa571 100644 --- a/configure.cmake +++ b/configure.cmake @@ -284,6 +284,13 @@ IF(UNIX) ENDIF() FIND_PACKAGE(Threads) + IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") + # CMake defined -lthread as thread flag + # This crashes in dlopen when trying to load plugins + # Workaround with -lpthread + SET(CMAKE_THREADS_LIBS_INIT -lpthread) + ENDIF() + SET(CMAKE_REQUIRED_LIBRARIES ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT}) |