Solves one of the last remaining blockers for #21778. Fixes lld linking shared libs for macos via libtool.
lld fails one of libtool's earliest checks because it happens to output a warning that contains a specific string:
# If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning
And here is the test being run:
x86_64-apple-darwin-ld: warning: Option `-single_module' is deprecated in ld64: x86_64-apple-darwin-ld: warning: Unnecessary option: this is already the default
Because the warning is printed the test fails. So libtool falls back to a very primitive and broken link-line for shared libs.
Arguably this should be worked-around in upstream lld by changing the warning string, as otherwise every libtool project will fail to link with it.
Like many other libtool hacks, the solution is to simply disable the check and hard-code the answer we know to be correct.