summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 447fd6119f..7aa3fb468a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2408,7 +2408,11 @@ AC_DEFUN([FIND_LD],[
FP_CC_LINKER_FLAG_TRY(bfd, $2) ;;
"GNU gold"*)
FP_CC_LINKER_FLAG_TRY(gold, $2)
- LD_NO_GOLD=ld
+ if test "$cross_compiling" = "yes"; then
+ AC_MSG_NOTICE([Using ld.gold and assuming that it is not affected by binutils issue 22266]);
+ else
+ LD_NO_GOLD=ld;
+ fi
;;
"LLD"*)
FP_CC_LINKER_FLAG_TRY(lld, $2) ;;