diff options
author | Vladislav Vaintroub <vvaintroub@linux-rbsx> | 2010-01-18 21:19:24 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@linux-rbsx> | 2010-01-18 21:19:24 +0100 |
commit | a87f4e1bbb9ab0296867ca92fd14472523c412ce (patch) | |
tree | 01339fc7b0bf48a2b4b7527eb91dac753ec22381 /configure.cmake | |
parent | 508959134ba4805283e04177de8db0a4144debbf (diff) | |
download | mariadb-git-a87f4e1bbb9ab0296867ca92fd14472523c412ce.tar.gz |
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)
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index f9f302d9ee9..e155b661259 100644 --- a/configure.cmake +++ b/configure.cmake @@ -284,6 +284,9 @@ IF(UNIX) IF(NOT LIBM) MY_SEARCH_LIBS(__infinity m LIBM) ENDIF() + IF(NOT LIBM) + MY_SEARCH_LIBS(rint m LIBM) + ENDIF() MY_SEARCH_LIBS(gethostbyname_r "nsl_r;nsl" LIBNSL) MY_SEARCH_LIBS(bind "bind;socket" LIBBIND) MY_SEARCH_LIBS(crypt crypt LIBCRYPT) |