From fb1f52e32fa21e0d7a3b5ac5e37afbd155ed8cee Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 21 Mar 2017 16:49:55 +0530 Subject: [PATCH] meson: Only require libmount on Linux It's not available on other platforms, so don't require the user to explicitly disable it there. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f559b4db0..c9f70f7a8 100644 --- a/meson.build +++ b/meson.build @@ -1283,7 +1283,7 @@ libintl = cc.find_library('intl', required : false) # pkg-config file below libmount_dep = [] libmount_opt = get_option('enable-libmount') -if libmount_opt != 'no' +if host_system == 'linux' and libmount_opt != 'no' libmount_dep = [dependency('mount', version : '>=2.28', required : false)] if not libmount_dep[0].found() libmount_dep = [cc.find_library('mount')]