From 6a497bb0a3a92ac13d637ee200db4d6cd43cb121 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Thu, 8 Sep 2016 21:55:36 +0100 Subject: [PATCH 1/2] libuv: Link with kvm on FreeBSD Add it unconditionally. It is present in FreeBSD 11, 10 and 9. --- Utilities/cmlibuv/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index e25ac82a4..8837be606 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -168,6 +168,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") endif() if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") + list(APPEND uv_libraries + kvm + ) list(APPEND uv_headers include/uv-bsd.h ) From c6d83a15d8ac11cba1388e853a9b321ca4e9c87a Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 9 Sep 2016 11:11:40 -0400 Subject: [PATCH 2/2] libuv: Link with kvm on NetBSD and OpenBSD We include the `kvm.h` header on these platforms and call kvm APIs. Link with the library to ensure they are available. --- Utilities/cmlibuv/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/cmlibuv/CMakeLists.txt b/Utilities/cmlibuv/CMakeLists.txt index 8837be606..1b384b594 100644 --- a/Utilities/cmlibuv/CMakeLists.txt +++ b/Utilities/cmlibuv/CMakeLists.txt @@ -181,6 +181,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") endif() if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") + list(APPEND uv_libraries + kvm + ) list(APPEND uv_headers include/uv-bsd.h ) @@ -191,6 +194,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "NetBSD") endif() if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") + list(APPEND uv_libraries + kvm + ) list(APPEND uv_headers include/uv-bsd.h )