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 /scripts | |
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 'scripts')
-rwxr-xr-x | scripts/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 98fa00d01ea..0b574fc0621 100755 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -216,6 +216,10 @@ ENDIF() SET(LIBS "${CLIENT_LIBS}") +IF(LIBCRYPT) + SET(LIBS "${LIBS} -l${LIBCRYPT}") +ENDIF() + IF(MSVC) STRING(REPLACE "-l" "" CLIENT_LIBS "${CLIENT_LIBS}") STRING(REPLACE "-l" "" LIBS "${LIBS}" ) |