Skip to content

Commit 1800cc8

Browse files
committed
meson: also search for libcap directly
1 parent 77018a8 commit 1800cc8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,12 @@ libm = cc.find_library('m')
614614
libdl = cc.find_library('dl')
615615
libcrypt = cc.find_library('crypt')
616616

617-
libcap = dependency('libcap')
617+
libcap = dependency('libcap', required : false)
618+
if not libcap.found()
619+
# Compat with Ubuntu 14.04 which ships libcap w/o .pc file
620+
libcap = cc.find_library('cap')
621+
endif
622+
618623
libmount = dependency('mount',
619624
version : '>= 2.27')
620625

0 commit comments

Comments
 (0)