summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-08-02 10:30:46 +0200
committerSergei Golubchik <serg@mariadb.org>2020-10-23 13:37:26 +0200
commit6cefe7d31ef43cadb905d71be743462825c7b4ff (patch)
tree277c1f5619da87a438b34a248240c25bdf5a1644 /configure.cmake
parent641f81baf45212569ec8a98072d62fd29e3fc8f0 (diff)
downloadmariadb-git-6cefe7d31ef43cadb905d71be743462825c7b4ff.tar.gz
cleanup: use predefined CMAKE_DL_LIBS
instead of, say, MY_SEARCH_LIBS(dlopen dl LIBDL)
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.cmake b/configure.cmake
index 75a02d2edc3..f32e4cbb9ad 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -130,7 +130,6 @@ IF(UNIX)
MY_SEARCH_LIBS(bind "bind;socket" LIBBIND)
MY_SEARCH_LIBS(crypt crypt LIBCRYPT)
MY_SEARCH_LIBS(setsockopt socket LIBSOCKET)
- MY_SEARCH_LIBS(dlopen dl LIBDL)
MY_SEARCH_LIBS(sched_yield rt LIBRT)
IF(NOT LIBRT)
MY_SEARCH_LIBS(clock_gettime rt LIBRT)
@@ -138,7 +137,7 @@ IF(UNIX)
FIND_PACKAGE(Threads)
SET(CMAKE_REQUIRED_LIBRARIES
- ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT} ${LIBEXECINFO})
+ ${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${CMAKE_DL_LIBS} ${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)