From 6b7b54d476a297b32f8f1521f3255052b9dda1b6 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 16 Sep 2018 14:35:44 +0200 Subject: bootstrap: Add missing libraries for kFreeBSD Closes #18375 --- bootstrap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap b/bootstrap index 188193d..416a3d6 100755 --- a/bootstrap +++ b/bootstrap @@ -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" ;; -- cgit v0.12 From 7e33050558bd7807f5b718f5f0d170159cc532ee Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 18 Sep 2018 20:21:58 +0200 Subject: libuv: Add kFreeBSD platform-specific files Issue 18375 --- Utilities/cmlibuv/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index ba1638e..a503041 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -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 -- cgit v0.12