Be more careful about what and how we link.
Only link what we need (--as-needed) to get unnecessary dependencies
out of the executables.
Be sure to properly link libc dynamically and the rest statically,
especially libgcc (-static-libgcc, should fix powerpc* builds => [1])
After two years, drop the "for now" LLD_UNSAFE=yes (r457508 by emaste@).
As e2fsprogs dlopen()s libmagic these days, our LIBMAGIC override is
useless. Instead patch libmagic.so.1 -> libmagic.so (12.1 calls it
libmagic.so.4; patch to lib/support/plausible.c).
Refresh files/patch-misc__Makefile.in
PR: 242798 [1]