From e1ca3b5c3589ff0c71f98477e72fcad088d07819 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Thu, 14 Sep 2023 15:19:48 +0200 Subject: [PATCH] superenv: help gettext-based configure scripts --- Library/Homebrew/extend/os/mac/extend/ENV/super.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb index 3d0459a5a1..5cd1731b96 100644 --- a/Library/Homebrew/extend/os/mac/extend/ENV/super.rb +++ b/Library/Homebrew/extend/os/mac/extend/ENV/super.rb @@ -120,6 +120,12 @@ module Superenv ENV["ac_have_clock_syscall"] = "no" end + # On macOS Sonoma (at least release candidate), iconv() is generally + # present and working, but has a minor regression that defeats the + # test implemented in gettext's configure script (and used by many + # gettext dependents). + ENV["am_cv_func_iconv_works"] = "yes" if MacOS.version == "14" + # The tools in /usr/bin proxy to the active developer directory. # This means we can use them for any combination of CLT and Xcode. self["HOMEBREW_PREFER_CLT_PROXIES"] = "1"