fix libkvm dependency for *bsd
This commit is contained in:
parent
c045d33a40
commit
5e9797035b
@ -43,6 +43,12 @@ else
|
|||||||
os = option_os
|
os = option_os
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if os != 'Linux'
|
||||||
|
kvm_dep = cc.find_library('kvm', required: true)
|
||||||
|
else
|
||||||
|
kvm_dep = []
|
||||||
|
endif
|
||||||
|
|
||||||
pam_dep = dependency('pam', required: false)
|
pam_dep = dependency('pam', required: false)
|
||||||
if not pam_dep.found()
|
if not pam_dep.found()
|
||||||
pam_dep = cc.find_library('pam', required: false)
|
pam_dep = cc.find_library('pam', required: false)
|
||||||
|
@ -24,6 +24,7 @@ rc_h = configure_file(input : 'rc.h.in', output : 'rc.h',
|
|||||||
configuration : rc_h_conf_data)
|
configuration : rc_h_conf_data)
|
||||||
|
|
||||||
librc = library('rc', librc_sources,
|
librc = library('rc', librc_sources,
|
||||||
|
dependencies: kvm_dep,
|
||||||
include_directories : [incdir, einfo_incdir],
|
include_directories : [incdir, einfo_incdir],
|
||||||
link_depends : 'rc.map',
|
link_depends : 'rc.map',
|
||||||
version : librc_version,
|
version : librc_version,
|
||||||
|
Loading…
Reference in New Issue
Block a user