Skip to content
Snippets Groups Projects
Commit 86f29950 authored by Ben Gamari's avatar Ben Gamari Committed by Zubin
Browse files

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.

(cherry picked from commit 99225996)
parent 95d35d6c
No related branches found
No related tags found
No related merge requests found
......@@ -79,13 +79,16 @@ AC_DEFUN([FIND_LD],[
dnl See #21712.
AC_CHECK_TARGET_TOOL([LD], [ld])
;;
*)
*-linux*|*-mingw32)
if test "x$enable_ld_override" = "xyes"; then
find_ld
else
AC_CHECK_TARGET_TOOL([LD], [ld])
fi
;;
*)
AC_CHECK_TARGET_TOOL([LD], [ld])
;;
esac
CHECK_LD_COPY_BUG([$1])
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment