Skip to content

Commit c6a32ae

Browse files
nxhackliudf0716
authored andcommitted
node: Preparing to update ICU to 76
fix building with system icu 76 ICU 76 decided to reduce overlinking[^1] thus `icu-i18n` will no longer add `icu-uc` when linking to shared libraries. This results in undefined symbols/references when trying to build with system ICU 76. [^1]: unicode-org/icu@199bc82 ref: nodejs/node#55563 Signed-off-by: Hirokazu MORIKAWA <[email protected]>
1 parent fa03704 commit c6a32ae

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 54299ac3a3d4e4520b8604dce43c2584092ccde2 Mon Sep 17 00:00:00 2001
2+
From: Michael Cho <[email protected]>
3+
Date: Sun, 27 Oct 2024 10:08:07 -0400
4+
Subject: [PATCH] build: fix building with system icu 76
5+
6+
ICU 76 decided to reduce overlinking[^1] thus `icu-i18n` will no longer
7+
add `icu-uc` when linking to shared libraries. This results in undefined
8+
symbols/references when trying to build with system ICU 76.
9+
10+
[^1]: unicode-org/icu@199bc82
11+
---
12+
configure.py | 2 +-
13+
1 file changed, 1 insertion(+), 1 deletion(-)
14+
15+
--- a/configure.py
16+
+++ b/configure.py
17+
@@ -1829,7 +1829,7 @@ def configure_intl(o):
18+
elif with_intl == 'system-icu':
19+
# ICU from pkg-config.
20+
o['variables']['v8_enable_i18n_support'] = 1
21+
- pkgicu = pkg_config('icu-i18n')
22+
+ pkgicu = pkg_config(['icu-i18n', 'icu-uc'])
23+
if not pkgicu[0]:
24+
error('''Could not load pkg-config data for "icu-i18n".
25+
See above errors or the README.md.''')

0 commit comments

Comments
 (0)