mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Fix some problems found by kent.
-lm is sometimes not linked, which causes errors about undefined rint() - FreeBSD embedded library does not link with the flags returned by mysql_config (added -lcrypt to LIBS, whereby causing overlinking in case of normal non-embedded client)
This commit is contained in:
parent
0ebe60070b
commit
ce59ee8098
2 changed files with 7 additions and 0 deletions
|
|
@ -284,6 +284,9 @@ IF(UNIX)
|
||||||
IF(NOT LIBM)
|
IF(NOT LIBM)
|
||||||
MY_SEARCH_LIBS(__infinity m LIBM)
|
MY_SEARCH_LIBS(__infinity m LIBM)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
IF(NOT LIBM)
|
||||||
|
MY_SEARCH_LIBS(rint m LIBM)
|
||||||
|
ENDIF()
|
||||||
MY_SEARCH_LIBS(gethostbyname_r "nsl_r;nsl" LIBNSL)
|
MY_SEARCH_LIBS(gethostbyname_r "nsl_r;nsl" LIBNSL)
|
||||||
MY_SEARCH_LIBS(bind "bind;socket" LIBBIND)
|
MY_SEARCH_LIBS(bind "bind;socket" LIBBIND)
|
||||||
MY_SEARCH_LIBS(crypt crypt LIBCRYPT)
|
MY_SEARCH_LIBS(crypt crypt LIBCRYPT)
|
||||||
|
|
|
||||||
|
|
@ -216,6 +216,10 @@ ENDIF()
|
||||||
|
|
||||||
SET(LIBS "${CLIENT_LIBS}")
|
SET(LIBS "${CLIENT_LIBS}")
|
||||||
|
|
||||||
|
IF(LIBCRYPT)
|
||||||
|
SET(LIBS "${LIBS} -l${LIBCRYPT}")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
STRING(REPLACE "-l" "" CLIENT_LIBS "${CLIENT_LIBS}")
|
STRING(REPLACE "-l" "" CLIENT_LIBS "${CLIENT_LIBS}")
|
||||||
STRING(REPLACE "-l" "" LIBS "${LIBS}" )
|
STRING(REPLACE "-l" "" LIBS "${LIBS}" )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue