aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,