Skip to content

Commit 2c4789b

Browse files
cho-mkelson42
authored andcommitted
Fix build with ICU 76
Due to unicode-org/icu@199bc82, ICU 76 no longer adds `icu-uc` by default. This causes linker errors for undefined symbols like `icu_76::UnicodeString::doReplace(...)`, referenced from: `zim::removeAccents(...)` in tools.cpp.o. Meson will automatically flatten the dependencies list as documented at https://mesonbuild.com/Reference-manual_functions.html#build_target
1 parent ba2600f commit 2c4789b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

meson.build

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@ else
7777
endif
7878

7979
if xapian_dep.found()
80-
icu_dep = dependency('icu-i18n', static:static_linkage)
80+
icu_dep = [
81+
dependency('icu-i18n', static:static_linkage),
82+
dependency('icu-uc', static:static_linkage)
83+
]
8184
else
82-
icu_dep = dependency('icu-i18n', required:false, static:static_linkage)
85+
icu_dep = [
86+
dependency('icu-i18n', required:false, static:static_linkage),
87+
dependency('icu-uc', required:false, static:static_linkage)
88+
]
8389
endif
8490

8591
gtest_dep = dependency('gtest', version: '>=1.10.0', main:true, fallback:['gtest', 'gtest_main_dep'], required:false)

0 commit comments

Comments
 (0)