configure: Implement ld override whitelist
Bring configure into alignment with ghc-toolchain, ensuring that the
ld-override logic will only take effect on Linux and Windows.
Fixes #25501 (closed).
Bring configure into alignment with ghc-toolchain, ensuring that the
ld-override logic will only take effect on Linux and Windows.
Fixes #25501 (closed).