mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
cmake/solaris: set CMAKE_REQUIRED_LIBRARIES to fix functions detections
Otherwise we will not detect next functions for instance: - gethostbyname_r # and related And now both autotools/cmake builds passes all regress tests in basic env (on solaris of course). Fixes: dns/client_fail_requests_getaddrinfo
This commit is contained in:
parent
050bfc7fc6
commit
dc95823cd7
@ -215,6 +215,9 @@ if(WIN32)
|
||||
set(CMAKE_REQUIRED_LIBRARIES ws2_32.lib)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS -FIwinsock2.h -FIws2tcpip.h)
|
||||
endif()
|
||||
if (SOLARIS)
|
||||
set(CMAKE_REQUIRED_LIBRARIES socket nsl)
|
||||
endif()
|
||||
|
||||
# Check if _GNU_SOURCE is available.
|
||||
CHECK_SYMBOL_EXISTS(__GNU_LIBRARY__ "features.h" _GNU_SOURCE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user