Commit 0d7fb471 authored by Ben Gamari's avatar Ben Gamari 🐢

configure: Disable LD_NO_GOLD logic when cross-compiling

This is generally terrible: see #16025. In short, we previously just blindly
used an un-prefixed ld for LD_NO_GOLD. This is blatantly wrong. Ideally we would
actually verify that is indeed broken (by binutils #22266) before
insisting on using another linker but sadly we cannot do so when cross-compiling
since this would require running host code.

For now we simply disable the LD_NO_GOLD logic when cross-compiling and hope
that the user has verified that their isn't affected by #22266.
parent b2227af3
......@@ -2408,7 +2408,11 @@ AC_DEFUN([FIND_LD],[
"GNU gold"*)
if test "$cross_compiling" = "yes"; then
AC_MSG_NOTICE([Using and assuming that it is not affected by binutils issue 22266]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment