Skip to content

Commit 8fa39fb

Browse files
meson.build: use has_header()
Signed-off-by: DreamConnected <1487442471@qq.com>
1 parent e3ffdae commit 8fa39fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ if want_capabilities
440440
code = '''
441441
int main(int argc, char *argv[]) { return 0; };
442442
'''
443-
if libcap_static.found() and not IS_BIONIC
443+
if libcap_static.found() and not cc.has_header('android/log.h') #has_define() is since Meson 1.3.0
444444
libcap_static_linkable = cc.links(code, args: '-static', dependencies: libcap_static)
445445
else
446446
libcap_static_linkable = false

0 commit comments

Comments
 (0)