From 5e9797035b4c26550e61e1aa0e3ad6c01a738bb2 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 30 Dec 2021 18:45:39 -0600 Subject: [PATCH] fix libkvm dependency for *bsd --- meson.build | 6 ++++++ src/librc/meson.build | 1 + 2 files changed, 7 insertions(+) diff --git a/meson.build b/meson.build index bd96c7d3..bbbd93e2 100644 --- a/meson.build +++ b/meson.build @@ -43,6 +43,12 @@ else os = option_os endif +if os != 'Linux' + kvm_dep = cc.find_library('kvm', required: true) +else + kvm_dep = [] +endif + pam_dep = dependency('pam', required: false) if not pam_dep.found() pam_dep = cc.find_library('pam', required: false) diff --git a/src/librc/meson.build b/src/librc/meson.build index 81c75080..30caa1f3 100644 --- a/src/librc/meson.build +++ b/src/librc/meson.build @@ -24,6 +24,7 @@ rc_h = configure_file(input : 'rc.h.in', output : 'rc.h', configuration : rc_h_conf_data) librc = library('rc', librc_sources, + dependencies: kvm_dep, include_directories : [incdir, einfo_incdir], link_depends : 'rc.map', version : librc_version,