From: Anton Yuzhaninov Date: Mon, 29 Oct 2018 22:45:11 +0000 (-0400) Subject: Stop linking with -lnsl on Linux X-Git-Tag: 1.8.2~103^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2614%2Fhead;p=thirdparty%2Frspamd.git Stop linking with -lnsl on Linux As far as I know on Linux libnsl is used only for NIS/NIS+ support. It is highly unlikey that Rspamd users use NIS in 2018. Keep linking with libnsl on Solaris - there it is likely needed even if NIS is not used. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f4eb9a00e..0aa91aa579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -564,7 +564,6 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") LIST(APPEND CMAKE_REQUIRED_LIBRARIES rt) LIST(APPEND CMAKE_REQUIRED_LIBRARIES dl) LIST(APPEND CMAKE_REQUIRED_LIBRARIES resolv) - LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl) MESSAGE(STATUS "Configuring for Linux") IF(EXISTS "/etc/debian_version") SET(LINUX_START_SCRIPT "rspamd_debian.in")