summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.cmake3
-rwxr-xr-xscripts/CMakeLists.txt4
2 files changed, 7 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)
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}" )