From ce59ee8098e22d99f402eea1b9d2d5de62a0caaf Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 18 Jan 2010 21:19:24 +0100 Subject: 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) --- scripts/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/CMakeLists.txt') 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}" ) -- cgit v1.2.1