mirror of
https://github.com/donl/rmilter.git
synced 2026-06-30 06:12:17 -06:00
More fixes to required libraries.
This commit is contained in:
parent
dddb28ec85
commit
fb7726bc83
1 changed files with 7 additions and 9 deletions
|
|
@ -175,7 +175,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|||
IF(BUILD_CPU_MODE STREQUAL "32")
|
||||
SET(CMAKE_C_FLAGS "-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE ${CMAKE_C_FLAGS}")
|
||||
ENDIF(BUILD_CPU_MODE STREQUAL "32")
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES resolv)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES resolv)
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
|
|
@ -211,14 +211,12 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
|||
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__ -DSOLARIS -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200112L")
|
||||
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES rt)
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES dl)
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES resolv)
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES socket)
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES umem)
|
||||
# Ugly hack, but FindOpenSSL on Solaris does not link with libcrypto
|
||||
LIST(APPEND CMAKE_REQUIRED_LIBRARIES crypto)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES rt)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES dl)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES resolv)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES nsl)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES socket)
|
||||
LIST(APPEND RMILTER_REQUIRED_LIBRARIES umem)
|
||||
SET(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
|
||||
SET(CMAKE_INSTALL_RPATH "${PREFIX}/lib")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue