]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix link failure on macOS
authorPádraig Brady <P@draigBrady.com>
Thu, 18 Sep 2025 14:34:23 +0000 (15:34 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 18 Sep 2025 16:13:02 +0000 (17:13 +0100)
* 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

index a2985140f853be9ea6a825bf9de419a42045aaf1..8f6d9a5d700329d7b830a44f308366fe530d5496 100644 (file)
@@ -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.