aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-12-30 18:45:39 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-12-30 18:45:39 -0600
commit5e9797035b4c26550e61e1aa0e3ad6c01a738bb2 (patch)
tree10c61e0940333aaf1f250cc8c1bcd8570038903c
parentc045d33a40cad626eebc2381daf58eba8ca79343 (diff)
fix libkvm dependency for *bsd
-rw-r--r--meson.build6
-rw-r--r--src/librc/meson.build1
2 files changed, 7 insertions, 0 deletions
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,