From 8fa39fb7bacf25c044a48d8462ec8ac57388e79d Mon Sep 17 00:00:00 2001 From: DreamConnected <1487442471@qq.com> Date: Fri, 1 Aug 2025 20:12:33 +0800 Subject: [PATCH] meson.build: use has_header() Signed-off-by: DreamConnected <1487442471@qq.com> --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 86f22db9a1..004c970785 100644 --- a/meson.build +++ b/meson.build @@ -440,7 +440,7 @@ if want_capabilities code = ''' int main(int argc, char *argv[]) { return 0; }; ''' - if libcap_static.found() and not IS_BIONIC + if libcap_static.found() and not cc.has_header('android/log.h') #has_define() is since Meson 1.3.0 libcap_static_linkable = cc.links(code, args: '-static', dependencies: libcap_static) else libcap_static_linkable = false