Skip to content

Commit 5e97970

Browse files
committed
fix libkvm dependency for *bsd
1 parent c045d33 commit 5e97970

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ else
4343
os = option_os
4444
endif
4545

46+
if os != 'Linux'
47+
kvm_dep = cc.find_library('kvm', required: true)
48+
else
49+
kvm_dep = []
50+
endif
51+
4652
pam_dep = dependency('pam', required: false)
4753
if not pam_dep.found()
4854
pam_dep = cc.find_library('pam', required: false)

src/librc/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ rc_h = configure_file(input : 'rc.h.in', output : 'rc.h',
2424
configuration : rc_h_conf_data)
2525

2626
librc = library('rc', librc_sources,
27+
dependencies: kvm_dep,
2728
include_directories : [incdir, einfo_incdir],
2829
link_depends : 'rc.map',
2930
version : librc_version,

0 commit comments

Comments
 (0)