diff options
-rw-r--r-- | configure.cmake | 7 | ||||
-rw-r--r-- | mysql-test/t/loadxml.test | 3 |
2 files changed, 7 insertions, 3 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}) diff --git a/mysql-test/t/loadxml.test b/mysql-test/t/loadxml.test index 627b74ce919..8b9c1bd1b0d 100644 --- a/mysql-test/t/loadxml.test +++ b/mysql-test/t/loadxml.test @@ -84,10 +84,7 @@ sleep 1; sleep 2; --enable_query_log -connection addconroot; ---reap disconnect addconroot; -connection default; # # Clean up |