Commit cf1764b3 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic '18375-kfreebsd-bootstrap'

7e330505 libuv: Add kFreeBSD platform-specific files
6b7b54d4 bootstrap: Add missing libraries for kFreeBSD
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2394
parents 2d119e53 7e330505
Pipeline #118402 failed with stage
in 0 seconds
......@@ -208,6 +208,22 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD")
list(APPEND uv_libraries
freebsd-glue
kvm
)
list(APPEND uv_headers
include/uv-bsd.h
)
list(APPEND uv_sources
src/unix/bsd-ifaddrs.c
src/unix/freebsd.c
src/unix/kqueue.c
src/unix/posix-hrtime.c
)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD")
list(APPEND uv_libraries
kvm
......
......@@ -1370,6 +1370,9 @@ else
uv_c_flags="${uv_c_flags} -D_GNU_SOURCE"
libs="${libs} -ldl -lrt"
;;
*kFreeBSD*)
libs="${libs} -lkvm -lfreebsd-glue"
;;
*BSD*)
libs="${libs} -lkvm"
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment