build: fix build failure in --enable-single-binary mode
commit5691ff399e824c79090f2c7f3d08218fde4f9560
authorPádraig Brady <P@draigBrady.com>
Tue, 21 May 2024 12:08:45 +0000 (21 13:08 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 21 May 2024 12:49:04 +0000 (21 13:49 +0100)
treee1ef39dbd555710642028cce183f9e0be75578f2
parent451de5d28a07230dddf43a385823e257f606f3ca
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.
src/local.mk