summaryrefslogtreecommitdiff
path: root/m4/find_ld.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/find_ld.m4')
-rw-r--r--m4/find_ld.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/m4/find_ld.m4 b/m4/find_ld.m4
index 3d4443be54..396bd936f9 100644
--- a/m4/find_ld.m4
+++ b/m4/find_ld.m4
@@ -61,7 +61,14 @@ AC_DEFUN([FIND_LD],[
AC_CHECK_TARGET_TOOL([LD], [ld])
}
- if test "x$enable_ld_override" = "xyes"; then
+ if test "$ghc_host_os" = "darwin" ; then
+ dnl N.B. Don't even try to find a more efficient linker on Darwin where
+ dnl broken setups (e.g. unholy mixtures of Homebrew and the native
+ dnl toolchain) are far too easy to come across.
+ dnl
+ dnl See #21712.
+ AC_CHECK_TARGET_TOOL([LD], [ld])
+ elif test "x$enable_ld_override" = "xyes"; then
find_ld
else
AC_CHECK_TARGET_TOOL([LD], [ld])