fix libkvm dependency for *bsd

This commit is contained in:
William Hubbs 2021-12-30 18:45:39 -06:00
parent c045d33a40
commit 5e9797035b
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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,