aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-09-27 14:17:18 +1000
committerfuzzard <fuzzard@kodi.tv>2023-12-29 14:42:34 +1000
commitefeff9708d4a7399762fbf08ff5cabdf794e7fb3 (patch)
tree888da890e4a0d9402e6b69c0a4064668133ce77b /tools
parent27e729a75d3c86b81c44737adbf83603a22c4394 (diff)
[tools/depends][native] gettext force am_cv_func_iconv_works for apple host
MacOS Sonoma (14.0) has a change in iconv that the gettext configure script fails when testing if iconv works. We just force it on
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/native/gettext/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/depends/native/gettext/Makefile b/tools/depends/native/gettext/Makefile
index 5a8fee1220..f78aceab1f 100644
--- a/tools/depends/native/gettext/Makefile
+++ b/tools/depends/native/gettext/Makefile
@@ -22,6 +22,14 @@ CONFIGURE=./configure --prefix=$(PREFIX) \
--without-git --without-cvs \
--disable-shared --disable-curses --disable-acl --disable-c++ --disable-nls
+ifeq ($(NATIVE_OS), osx)
+ # As per homebrew - https://github.com/Homebrew/homebrew-core/blob/f6df737d9479dd215185000a3dbd641185eafec2/Formula/g/gettext.rb#L52C1-L55
+ # Sonoma iconv() has a regression w.r.t. transliteration, which happens to
+ # break gettext's configure check. Force it.
+ # Reported to Apple as FB13163914
+ CONFIGURE+= am_cv_func_iconv_works=y
+endif
+
LIBDYLIB=$(PLATFORM)/gettext-tools/src/.libs/libgettextsrc.a
all: .installed-$(PLATFORM)