Skip to content

Commit 4bae6fe

Browse files
author
Tor Didriksen
committed
Bug#27238252 LDAP AUTHENTICATION PLUGIN(S) ARE NOT BUILT ON FREEBSD PLATFORM
On FreeBSD, look in /usr/local for ldap stuff. This patch is for 5.7
1 parent 8ef61ba commit 4bae6fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libmysql/authentication_ldap/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
INCLUDE(CheckIncludeFiles)
2121

22+
IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
23+
INCLUDE_DIRECTORIES(SYSTEM /usr/local/include)
24+
LIST(APPEND CMAKE_REQUIRED_INCLUDES "/usr/local/include")
25+
ENDIF()
26+
2227
CHECK_INCLUDE_FILES(sasl/sasl.h HAVE_SASL_H)
2328
CHECK_INCLUDE_FILES(lber.h HAVE_LBER_H)
2429

@@ -48,7 +53,9 @@ ENDIF()
4853
# IF someone like can build the cyrus sasl library on windows and build LDAP authentication sasl client as well.
4954
IF (CMAKE_SYSTEM_NAME MATCHES "SunOS")
5055
SET(SASL_LIBRARY "sasl")
51-
ELSE ()
56+
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
57+
SET(SASL_LIBRARY "-L/usr/local/lib -R/usr/local/lib -lsasl2")
58+
ELSE()
5259
SET(SASL_LIBRARY "sasl2")
5360
ENDIF ()
5461

0 commit comments

Comments
 (0)