Skip to content

Commit

Permalink
Bug#27238252 LDAP AUTHENTICATION PLUGIN(S) ARE NOT BUILT ON FREEBSD P…
Browse files Browse the repository at this point in the history
…LATFORM

On FreeBSD, look in /usr/local for ldap stuff.

This patch is for 5.7
  • Loading branch information
Tor Didriksen committed Dec 14, 2017
1 parent 8ef61ba commit 4bae6fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libmysql/authentication_ldap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

INCLUDE(CheckIncludeFiles)

IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
INCLUDE_DIRECTORIES(SYSTEM /usr/local/include)
LIST(APPEND CMAKE_REQUIRED_INCLUDES "/usr/local/include")
ENDIF()

CHECK_INCLUDE_FILES(sasl/sasl.h HAVE_SASL_H)
CHECK_INCLUDE_FILES(lber.h HAVE_LBER_H)

Expand Down Expand Up @@ -48,7 +53,9 @@ ENDIF()
# IF someone like can build the cyrus sasl library on windows and build LDAP authentication sasl client as well.
IF (CMAKE_SYSTEM_NAME MATCHES "SunOS")
SET(SASL_LIBRARY "sasl")
ELSE ()
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
SET(SASL_LIBRARY "-L/usr/local/lib -R/usr/local/lib -lsasl2")
ELSE()
SET(SASL_LIBRARY "sasl2")
ENDIF ()

Expand Down

0 comments on commit 4bae6fe

Please sign in to comment.