From: Pádraig Brady Date: Tue, 21 May 2024 12:08:45 +0000 (+0100) Subject: build: fix build failure in --enable-single-binary mode X-Git-Tag: v9.6~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5691ff399e824c79090f2c7f3d08218fde4f9560;p=thirdparty%2Fcoreutils.git build: fix build failure in --enable-single-binary mode * src/local.mk: Avoid overriding automake generated DEPENDENCIES, so that it applies its adjustments to LDADD to avoid propagating flags (like -Wl,-rpath) into make targets. This was seen on FreeBSD where LIBINTL is set to: /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib Instead let automake generate a sanitized src_coreutils_DEPENDENCIES (based on LDADD), which we then augment with the EXTRA_... variable. --- diff --git a/src/local.mk b/src/local.mk index 3356f8a2ab..8133925ac7 100644 --- a/src/local.mk +++ b/src/local.mk @@ -482,13 +482,13 @@ if SINGLE_BINARY src_coreutils_CFLAGS = -DSINGLE_BINARY $(AM_CFLAGS) #src_coreutils_LDFLAGS = $(AM_LDFLAGS) src_coreutils_LDADD = $(single_binary_deps) $(LDADD) $(single_binary_libs) -src_coreutils_DEPENDENCIES = $(LDADD) $(single_binary_deps) +EXTRA_src_coreutils_DEPENDENCIES = $(single_binary_deps) include $(top_srcdir)/src/single-binary.mk # Creates symlinks or shebangs to the installed programs when building # coreutils single binary. -EXTRA_src_coreutils_DEPENDENCIES = src/coreutils_$(single_binary_install_type) +EXTRA_src_coreutils_DEPENDENCIES += src/coreutils_$(single_binary_install_type) endif SINGLE_BINARY CLEANFILES += src/coreutils_symlinks