From 5e385fe16e83d93e67da2d9bb9854e39b7e92af4 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 25 Oct 2025 13:02:07 +0900 Subject: [PATCH] locale: use include directory for libxkbcommon To support the case the headers are installed at an unusual place. --- meson.build | 1 + src/locale/meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1251ecf322d..8bd21e64373 100644 --- a/meson.build +++ b/meson.build @@ -1457,6 +1457,7 @@ conf.set10('HAVE_LIBARCHIVE_HARDLINK_IS_SET', libxkbcommon = dependency('xkbcommon', version : '>= 0.3.0', required : get_option('xkbcommon')) +libxkbcommon_cflags = libxkbcommon.partial_dependency(includes: true, compile_args: true) conf.set10('HAVE_XKBCOMMON', libxkbcommon.found()) libpcre2 = dependency('libpcre2-8', diff --git a/src/locale/meson.build b/src/locale/meson.build index c4175916801..2994080d1f0 100644 --- a/src/locale/meson.build +++ b/src/locale/meson.build @@ -19,7 +19,7 @@ localectl_sources = files('localectl.c') if conf.get('HAVE_XKBCOMMON') == 1 libxkbcommon_deps = [ libdl, - libxkbcommon.partial_dependency(compile_args: true), + libxkbcommon_cflags, ] else libxkbcommon_deps = [] -- 2.47.3