Pass --disable-ld-override to bindist configure script on Darwin
It turns out that Darwin users often have multiple linkers installed. However this can result in the user's toolchain being broken unless the Apple linker is used consistently (see ghc/ghc#21570 (comment 436198)). For this reason, we have unconditionally disabled the configure
script's ld override logic (which intended to improve linker performance and reliability on Windows and Linux, where defaulting to ld.bfd
is the norm) in GHC 9.4 and later (as well as 9.2.4).
However, for earlier releases there is the potential for things to go wrong. It would be ideal if ghcup
could pass --disable-ld-override
to the binary distribution configure
script on Darwin.