mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/alpine-support'
* origin/topic/jsiwek/alpine-support: Add FTS dependency when building on Alpine Remove unnecessary header include Improve default DNS resolution support for Alpine/musl Add dns_resolver option
This commit is contained in:
commit
002191ab62
15 changed files with 237 additions and 32 deletions
|
@ -188,6 +188,20 @@ endif ()
|
|||
# if one specifies --with-openssl (which may be common).
|
||||
include_directories(BEFORE ${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
# Alpine support
|
||||
if ( ${CMAKE_SYSTEM_NAME} MATCHES Linux AND EXISTS /etc/os-release )
|
||||
execute_process(
|
||||
COMMAND grep -q alpine /etc/os-release
|
||||
RESULT_VARIABLE os_release_alpine
|
||||
)
|
||||
|
||||
if ( os_release_alpine EQUAL 0 )
|
||||
find_package(FTS REQUIRED)
|
||||
list(APPEND OPTLIBS ${FTS_LIBRARY})
|
||||
include_directories(BEFORE ${FTS_INCLUDE_DIR})
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
set(brodeps
|
||||
${BinPAC_LIBRARY}
|
||||
${PCAP_LIBRARY}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue