summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-07-31 11:10:41 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-31 11:10:41 +0200
commita773d932678a0b205f43d8a1aaa416d843d66bc8 (patch)
treeb7688e98eb5ad44d04559d59b4aa17e016138149 /plugin
parent153cd6a27f1b798fea6dee3aecf3a95df561c6fa (diff)
downloadmariadb-git-a773d932678a0b205f43d8a1aaa416d843d66bc8.tar.gz
MDEV-19603 MariaDB 10.4 does not build on OpenBSD due to the use of libdl
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auth_pam/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt
index 28a194927e9..93ac29cd425 100644
--- a/plugin/auth_pam/CMakeLists.txt
+++ b/plugin/auth_pam/CMakeLists.txt
@@ -25,7 +25,7 @@ IF(HAVE_PAM_APPL_H)
FIND_LIBRARY(PAM_LIBRARY pam) # for srpm build-depends detection
ADD_DEFINITIONS(-D_GNU_SOURCE)
MYSQL_ADD_PLUGIN(auth_pam_v1 auth_pam_v1.c LINK_LIBRARIES pam MODULE_ONLY)
- MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam dl MODULE_ONLY)
+ MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam ${LIBDL} MODULE_ONLY)
IF (TARGET auth_pam)
MYSQL_ADD_EXECUTABLE(auth_pam_tool auth_pam_tool.c DESTINATION ${INSTALL_PLUGINDIR}/auth_pam_tool_dir COMPONENT Server)
TARGET_LINK_LIBRARIES(auth_pam_tool pam)