diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-02-16 23:18:32 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-02-17 23:49:56 +0100 |
commit | 11536f99f14a2fedb822abb6be3a6ad79ad3abc9 (patch) | |
tree | ca21193ce7e0220f47d6efb475cb581f610e3253 /plugin | |
parent | 87eb82d4d52dd9ed1c954b0068898a4ec7a02df2 (diff) | |
download | mariadb-git-11536f99f14a2fedb822abb6be3a6ad79ad3abc9.tar.gz |
MDEV-7305 Difficulties building cracklib_password_check
put cracklib_password_check into a separate package.
build it conditionally on Debian/Ubuntu
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/cracklib_password_check/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/cracklib_password_check/CMakeLists.txt b/plugin/cracklib_password_check/CMakeLists.txt index a57ad240d64..81db865eae0 100644 --- a/plugin/cracklib_password_check/CMakeLists.txt +++ b/plugin/cracklib_password_check/CMakeLists.txt @@ -1,10 +1,13 @@ INCLUDE (CheckIncludeFiles) INCLUDE (CheckLibraryExists) -CHECK_INCLUDE_FILES (crack.h HAVE_CRACK_H) CHECK_LIBRARY_EXISTS(crack FascistCheckUser "" HAVE_LIBCRACK) +SET(CMAKE_REQUIRED_DEFINITIONS -Dsize_t=int) # debian hack, debian bug. +CHECK_INCLUDE_FILES (crack.h HAVE_CRACK_H) + IF (HAVE_ALLOCA_H AND HAVE_CRACK_H AND HAVE_LIBCRACK AND HAVE_MEMCPY) MYSQL_ADD_PLUGIN(cracklib_password_check cracklib_password_check.c - LINK_LIBRARIES crack MODULE_ONLY) + LINK_LIBRARIES crack MODULE_ONLY + COMPONENT cracklib-password-check) ENDIF() |