From c2e1816a53345ff9d5b89fc1fa566e87d0ee1b7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Thu, 18 Sep 2025 15:34:23 +0100 Subject: [PATCH] build: fix link failure on macOS * src/local.mk: Explicitly depend on @INTL_MACOS_LIBS@ which may be not implicitly referenced (in LIBINTL) without gettext. This is a new transitive dependency through localename-unsafe. We add this globally to ease future maintenance as currently 6 commands require the localename-unsafe dependency: date, du through show-date() (fprintftime), and ls, pr, stat, uptime through strftime(). --- src/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local.mk b/src/local.mk index a2985140f8..8f6d9a5d70 100644 --- a/src/local.mk +++ b/src/local.mk @@ -100,7 +100,7 @@ remove_ldadd = # replacement functions defined in libcoreutils.a. # Similarly for $(MBRTOWC_LIB). LDADD = src/libver.a lib/libcoreutils.a $(LIBINTL) $(MBRTOWC_LIB) \ - lib/libcoreutils.a + $(INTL_MACOSX_LIBS) lib/libcoreutils.a # First, list all programs, to make listing per-program libraries easier. # See [ below. -- 2.47.3